Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jan 15, 2024
1 parent 1173a42 commit 99d68be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ ARG NODE_VERSION=lts-alpine3.18@sha256:c8245ebe9d86862ab40bbaee04f69f9787c57b83b
FROM node:$NODE_VERSION AS base
WORKDIR /app
ENV NODE_ENV production

# needed for node alpine
RUN chown -R 1000:1000 /home/node && \
chmod -R 755 /home/node && \
chown 1000:1000 /tmp && \
chmod 1777 /tmp

USER 1000

FROM base AS builder
Expand Down

0 comments on commit 99d68be

Please sign in to comment.