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

Commit

Permalink
ci: use node
Browse files Browse the repository at this point in the history
  • Loading branch information
rolu01 committed Jan 10, 2024
1 parent c3fd866 commit 242d962
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM node:16-alpine
FROM node:18-alpine

# Labels
LABEL vendor="Onify"
LABEL code="nodejs"

# Create app directory
RUN mkdir -p /usr/app
RUN mkdir -p /.npm

# Added this config because of bug in node18 alpine image https://github.com/nodejs/docker-node/issues/1749
ENV npm_config_cache /tmp/npm

WORKDIR /usr/app

Expand All @@ -23,4 +25,4 @@ RUN npm prune --production

ENV NODE_ENV=production

ENTRYPOINT [ "npm", "start", "--silent" ]
ENTRYPOINT [ "npm", "start" ]

0 comments on commit 242d962

Please sign in to comment.