11# This target exists to enable targeted building for running tests
2- FROM node:10-alpine@sha256:0d5abfc8ef9d0984010a05e234324e517620af096b8aeb2fabc841157ef2e676 as builder
2+ FROM node:10-alpine@sha256:77c898d0da5e7bfb6e05c9a64de136ba4e03889a72f3c298e95df822a38f450d as builder
33WORKDIR /code
44# keep package.json separate so that we can cache the npm install step more often
55COPY package*.json /code/
@@ -11,14 +11,14 @@ RUN npm run build
1111RUN npm run test
1212
1313# ###############################################################################
14- FROM node:10-alpine@sha256:0d5abfc8ef9d0984010a05e234324e517620af096b8aeb2fabc841157ef2e676 as prod-install
14+ FROM node:10-alpine@sha256:77c898d0da5e7bfb6e05c9a64de136ba4e03889a72f3c298e95df822a38f450d as prod-install
1515WORKDIR /app/
1616COPY --from=builder /code/package*.json /app/
1717RUN npm install --production
1818COPY --from=builder /code/build/ /app/dist/
1919
2020# ###############################################################################
21- FROM node:10-alpine@sha256:0d5abfc8ef9d0984010a05e234324e517620af096b8aeb2fabc841157ef2e676 as docker-install
21+ FROM node:10-alpine@sha256:77c898d0da5e7bfb6e05c9a64de136ba4e03889a72f3c298e95df822a38f450d as docker-install
2222
2323RUN apk update && \
2424 apk add curl
@@ -31,7 +31,7 @@ RUN curl -L -o /tmp/docker-$VERSION.tgz https://download.docker.com/linux/static
3131 && mv docker/docker /usr/bin
3232
3333# ###############################################################################
34- FROM node:10-alpine@sha256:0d5abfc8ef9d0984010a05e234324e517620af096b8aeb2fabc841157ef2e676
34+ FROM node:10-alpine@sha256:77c898d0da5e7bfb6e05c9a64de136ba4e03889a72f3c298e95df822a38f450d
3535
3636# See GitHub Action label docs
3737# https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
0 commit comments