Change node version for prod dockerfile

main
trivernis 2 months ago
parent 61f96f7784
commit 498a295dab
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 7E6D18B61C8D2F4B

@ -13,7 +13,7 @@ COPY . .
RUN yarn build
# Creating final production image
FROM node:16-alpine
FROM node:18-alpine
RUN apk add --no-cache vips-dev
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
@ -26,4 +26,4 @@ ENV PATH /opt/node_modules/.bin:$PATH
RUN chown -R node:node /opt/app
USER node
EXPOSE 1337
CMD ["yarn", "start"]
CMD ["yarn", "start"]

Loading…
Cancel
Save