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

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jan 15, 2024
1 parent 99d68be commit 1a06e60
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
ARG NODE_VERSION=lts-alpine3.18@sha256:c8245ebe9d86862ab40bbaee04f69f9787c57b83beb6e9a174e8afc154989e1f
ARG NODE_VERSION=18-alpine3.18@sha256:c8245ebe9d86862ab40bbaee04f69f9787c57b83beb6e9a174e8afc154989e1f
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 && \
RUN chown -R 1000:1000 /app && \
chmod -R 755 /app && \
chown 1000:1000 /tmp && \
chmod 1777 /tmp

USER 1000

FROM base AS builder
WORKDIR /app

COPY yarn.lock .yarnrc.yml ./
COPY --chown=1000:1000 .yarn .yarn
Expand Down

0 comments on commit 1a06e60

Please sign in to comment.