Skip to content

Commit

Permalink
Updated Dockerfile to use SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
DerCed committed Feb 13, 2024
1 parent ded9a0e commit e172ea0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM node:lts AS build
FROM node:lts AS runtime
WORKDIR /app
COPY package*.json ./
RUN npm install

COPY . .

RUN npm install
RUN npm run build

FROM nginx:alpine AS runtime
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
ENV HOST=0.0.0.0
ENV PORT=80
EXPOSE 80
CMD node ./dist/server/entry.mjs

0 comments on commit e172ea0

Please sign in to comment.