ci: initial CI setup for deployment
This commit is contained in:
parent
e8e1c7420e
commit
ab6c050836
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
|
4
captain-definition
Normal file
4
captain-definition
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"dockerfilePath" :"./Dockerfile"
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "dechets-agglo",
|
||||
"name": "dechets-agglo-muretain",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
|
3
snowpack.config.js
Normal file
3
snowpack.config.js
Normal file
@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
mount: { src: "/" },
|
||||
};
|
Loading…
Reference in New Issue
Block a user