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