Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktoriia committed Jul 12, 2023
1 parent da90af1 commit e0b192f
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 builder
FROM docker.io/node:18-bullseye as build-stage

RUN mkdir /app && chown -R node:node /app
WORKDIR /app
Expand All @@ -10,8 +10,8 @@ COPY . ./
RUN npm run build

# production environment
FROM nginx:1.21-alpine
FROM docker.io/nginx:1.25
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/build /usr/share/nginx/html
COPY --from=build-stage /app/build /usr/share/nginx/html
EXPOSE 83
CMD ["nginx", "-g", "daemon off;"]

0 comments on commit e0b192f

Please sign in to comment.