Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cracker0dks committed Nov 27, 2023
1 parent 436b172 commit d233b4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16 as base
FROM node:18 as base

# Create app directory
RUN mkdir -p /opt/app
Expand All @@ -18,7 +18,7 @@ RUN npm run build
# Final image
#####################

FROM node:16-alpine
FROM node:18-alpine
ENV NODE_ENV=prod

MAINTAINER cracker0dks
Expand All @@ -28,7 +28,7 @@ RUN mkdir -p /opt/app
WORKDIR /opt/app

COPY ./package.json ./package-lock.json config.default.yml ./
RUN npm ci --only=prod
RUN npm ci --only=prod --save-dev webpack-dev-server

COPY scripts ./scripts
COPY --from=base /opt/app/dist ./dist
Expand Down

0 comments on commit d233b4b

Please sign in to comment.