Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Lucius authored Jul 13, 2024
1 parent db16b32 commit 748d882
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:alpine as build

ADD . /app
WORKDIR /app

RUN npm install
RUN node src/generate.cjs
RUN npm run build

FROM nginx:stable
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build /usr/share/nginx/html

0 comments on commit 748d882

Please sign in to comment.