mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-25 00:51:01 +01:00
42076a7502
Co-authored-by: Conduitry <git@chor.date> Co-authored-by: bluwy <bjornlu.dev@gmail.com>
23 lines
527 B
Docker
23 lines
527 B
Docker
# IMPORTANT: Don't use this Dockerfile in your own projects without also looking at the .dockerignore file.
|
|
# Without an appropriate .dockerignore, this Dockerfile will copy a large number of unneeded files into your image.
|
|
|
|
FROM mhart/alpine-node: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:slim-14
|
|
|
|
WORKDIR /app
|
|
COPY --from=0 /app .
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
CMD ["node", "build"]
|