Skip to content

Commit

Permalink
Add apk update and use npm ci in Dockerfile
Browse files Browse the repository at this point in the history
Updated the Dockerfile to include apk update for dependency management. Replaced npm install (npm i) with npm ci for a more reliable and consistent build process.
  • Loading branch information
akama-aka committed Sep 12, 2024
1 parent 5a0bc48 commit 6f4a66c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ ENV VERSION=1.1.2 \
XRAY_RESOLVER_UA="Aki-CDN/1.1.2-DEV"
LABEL org.opencontainers.image.version=$VERSION
LABEL org.opencontainers.image.description="An custom CDN-CGI Server for 4xx,5xx Status Response Sites."
RUN apk update
RUN npm i -g fastify-cli
RUN mkdir /opt/server
RUN chown node:node /opt/server
USER node
WORKDIR /opt/server
COPY --chown=node:node ./ /opt/server
RUN npm i
RUN npm ci
EXPOSE $SERVER_PORT
CMD [ "npm", "run","server"]

0 comments on commit 6f4a66c

Please sign in to comment.