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

Commit

Permalink
Tester justert apk
Browse files Browse the repository at this point in the history
  • Loading branch information
eilifjohansen committed Nov 17, 2024
1 parent 3a2ef1d commit b6e3f9c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM node:18-alpine
RUN apk update && apk add --no-cache build-base gcc autoconf automake zlib-dev libpng-dev vips-dev git > /dev/null 2>&1

USER root

# Install build dependencies
RUN apk add --no-cache make gcc g++ python3

ENV NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
Expand All @@ -13,9 +17,7 @@ ENV PATH=/app/node_modules/.bin:$PATH
COPY . .
RUN yarn build

RUN chown -R node:node /app
USER node
EXPOSE 1337

# Run the run.sh script as root
# Run the application as root
CMD ["yarn", "start"]

0 comments on commit b6e3f9c

Please sign in to comment.