mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
22 lines
400 B
Docker
22 lines
400 B
Docker
FROM mhart/alpine-node:11.14
|
|
|
|
# install dependencies
|
|
WORKDIR /app
|
|
COPY static /app/static
|
|
COPY content /app/content
|
|
COPY __sapper__ /app/__sapper__
|
|
COPY package.json package-lock.json /app/
|
|
RUN npm install --production
|
|
|
|
###
|
|
# Only copy over the Node pieces we need
|
|
# ~> Saves 35MB
|
|
###
|
|
FROM mhart/alpine-node:base-11.14
|
|
|
|
WORKDIR /app
|
|
COPY --from=0 /app .
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "__sapper__/build"]
|