ci: initial CI setup for deployment

This commit is contained in:
Pierre Martin
2021-01-09 11:37:18 +01:00
parent e8e1c7420e
commit ab6c050836
5 changed files with 21 additions and 1 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:15.1.0 as builder
WORKDIR /project
COPY package.json /project/package.json
RUN npm ci
# use separate layer for more efficient caching
COPY snowpack.config.js /project/snowpack.config.js
COPY src /project/src
RUN npm run build
FROM pierrezemb/gostatic:latest
COPY --from=builder /project/build /srv/http