Merge pull request #53 from Frajder/patch-1

Update Dockerfile
This commit is contained in:
Cogent Apps
2023-03-19 01:46:32 -07:00
committed by GitHub

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"]