Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sample-docker-templates/react/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###### BUILD ENVIRONMENT ######

# Base Image
FROM node:12.18.1 as build
FROM node:12.18.1@sha256:2b85f4981f92ee034b51a3c8bb22dbb451d650d5c12b6439a169f8adc750e4b6 as build

# Moving into working directory
WORKDIR /app
Expand All @@ -20,7 +20,7 @@ RUN npm run build
###### PRODUCTION ENVIRONMENT ######

# Base Image for prod env
FROM nginx:stable-alpine
FROM nginx:stable-alpine@sha256:2366ede62d2e26a20f7ce7d0294694fe52b166107fd346894e4658dfb5273f9c

# Adding the build files from previous container to nginx/html
COPY --from=build /app/build /usr/share/nginx/html
Expand Down