File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ With multi-stage builds, a tried and true solution like [Nginx](https://en.wikip
129129Let's use the previous Dockerfile but change the FROM to include the name of the stage:
130130
131131``` Dockerfile
132- # El primer FROM ahora es una etapa llamada build-stage
132+ # The first FROM is now a stage called build-stage
133133# highlight-start
134134FROM node:20 AS build-stage
135135# highlight-end
@@ -142,13 +142,13 @@ RUN npm ci
142142
143143RUN npm run build
144144
145- # Esta es una nueva etapa, todo lo anterior a esta linea ha desaparecido, excepto por los archivos que queremos COPIAR
145+ # This is a new stage, everything before this is gone, except for the files that we want to COPY
146146# highlight-start
147147FROM nginx:1.25-alpine
148148# highlight-end
149149
150- # COPIA el directorio dist de build-stage a /usr/share/nginx/html
151- # El destino fue encontrado en la pagina de Docker hub
150+ # COPY the directory dist from the build-stage to /usr/share/nginx/html
151+ # The target location here was found from the Docker hub page
152152# highlight-start
153153COPY --from=build-stage /usr/src/app/dist /usr/share/nginx/html
154154# highlight-end
You can’t perform that action at this time.
0 commit comments