Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit b42d867

Browse files
removed 2-1 layer(s).
1 parent cd3c205 commit b42d867

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ COPY --from=version /src/.version ./
2222

2323
RUN REACT_APP_CLIENT_VERSION=$(cat .version) \
2424
yarn build:dist && \
25-
yarn cache clean
25+
yarn cache clean && \
26+
cp .version ./build
2627

2728
FROM build AS publish
2829
ARG MYGET_API_KEY
@@ -37,12 +38,11 @@ RUN \
3738

3839
FROM nginx:1.15.5-alpine AS runtime
3940

40-
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
41+
WORKDIR /etc/nginx
4142

42-
COPY ./nginx/mime.types /etc/nginx/mime.types
43+
COPY ./nginx/ ./
4344

44-
COPY --from=build /app/build/ /var/www/
45-
COPY --from=version /src/.version /var/www
45+
COPY --from=publish /app/build/ /var/www/
4646

4747
EXPOSE 80
4848

0 commit comments

Comments
 (0)