0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
svelte/site/Dockerfile
Rich Harris 8e1fa5755f
Merge pull request #2479 from sveltejs/gcloud-builds
site: use gcloud CLI to build Docker image
2019-04-22 06:07:35 -04:00

20 lines
319 B
Docker

FROM mhart/alpine-node:11.14
# install dependencies
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --production
###
# Only copy over the Node pieces we need
# ~> Saves 35MB
###
FROM mhart/alpine-node:base-11.14
WORKDIR /app
COPY --from=0 /app .
COPY . .
EXPOSE 3000
CMD ["node", "__sapper__/build"]