Update Dockerfile

Update Dockerfile with node:19-alpine
This commit is contained in:
Frajder
2023-03-18 13:26:35 +01:00
committed by GitHub
parent 5a88dfc435
commit 444be8493a

View File

@@ -1,4 +1,4 @@
FROM node:16-alpine AS build FROM node:19-alpine AS build
RUN addgroup -S app && adduser -S app -G app RUN addgroup -S app && adduser -S app -G app
RUN mkdir /app && chown app:app /app RUN mkdir /app && chown app:app /app
@@ -21,7 +21,7 @@ ENV REACT_APP_AUTH_PROVIDER=local
RUN npm run build RUN npm run build
FROM node:16-alpine AS server FROM node:19-alpine AS server
RUN addgroup -S app && adduser -S app -G app RUN addgroup -S app && adduser -S app -G app
@@ -42,4 +42,4 @@ COPY --from=build /app/build /app/public
LABEL org.opencontainers.image.source="https://github.com/cogentapps/chat-with-gpt" LABEL org.opencontainers.image.source="https://github.com/cogentapps/chat-with-gpt"
ENV PORT 3000 ENV PORT 3000
CMD ["npm", "run", "start"] CMD ["npm", "run", "start"]