Add new dockerfile

This commit is contained in:
2024-09-17 18:17:20 +08:00
parent 151a8beed4
commit 17476b3625
6 changed files with 76 additions and 28 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM node:16 AS builder
WORKDIR /app
RUN git clone https://github.com/standardnotes/app.git .
RUN yarn install
RUN yarn build:web
FROM nginx:alpine
WORKDIR /usr/share/nginx/html
COPY --from=builder /app/packages/web .
CMD ["nginx", "-g", "daemon off;"]