|
|
|
@ -1,7 +1,7 @@
|
|
|
|
# IMPORTANT: Don't use this Dockerfile in your own projects without also looking at the .dockerignore file.
|
|
|
|
# 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.
|
|
|
|
# Without an appropriate .dockerignore, this Dockerfile will copy a large number of unneeded files into your image.
|
|
|
|
|
|
|
|
|
|
|
|
FROM mhart/alpine-node:12
|
|
|
|
FROM mhart/alpine-node:14
|
|
|
|
|
|
|
|
|
|
|
|
# install dependencies
|
|
|
|
# install dependencies
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
@ -12,7 +12,7 @@ RUN npm ci --production
|
|
|
|
# Only copy over the Node pieces we need
|
|
|
|
# Only copy over the Node pieces we need
|
|
|
|
# ~> Saves 35MB
|
|
|
|
# ~> Saves 35MB
|
|
|
|
###
|
|
|
|
###
|
|
|
|
FROM mhart/alpine-node:slim-12
|
|
|
|
FROM mhart/alpine-node:slim-14
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=0 /app .
|
|
|
|
COPY --from=0 /app .
|
|
|
|
|