Skip to content

Commit

Permalink
Merge pull request cogentapps#53 from Frajder/patch-1
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
cogentapps authored Mar 19, 2023
2 parents eeae29d + 444be84 commit 583eab2
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-alpine AS build
FROM node:19-alpine AS build

RUN addgroup -S app && adduser -S app -G app
RUN mkdir /app && chown app:app /app
Expand All @@ -21,7 +21,7 @@ ENV REACT_APP_AUTH_PROVIDER=local

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

Expand All @@ -42,4 +42,4 @@ COPY --from=build /app/build /app/public
LABEL org.opencontainers.image.source="https://github.com/cogentapps/chat-with-gpt"
ENV PORT 3000

CMD ["npm", "run", "start"]
CMD ["npm", "run", "start"]

0 comments on commit 583eab2

Please sign in to comment.