You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
316 B
Docker
14 lines
316 B
Docker
3 years ago
|
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
|