Skip to content

Commit b680c8c

Browse files
junfengyemrin9
authored andcommitted
fix Dockerfile
1 parent bef5674 commit b680c8c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

docker/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@ RUN npm run build
3030

3131
# production stage
3232
FROM nginx:stable-alpine as production-stage
33-
COPY --from=build-stage /app/dist /app
34-
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
3533

3634
ENV PAGE_TITLE="RapiDoc"
3735
ENV PAGE_FAVICON="favicon.png"
3836
ENV SPEC_URL="http://petstore.swagger.io/v2/swagger.json"
3937
ENV PORT=80
40-
ENV RAPIDOC_OPTIONS=
4138

4239
# copy files to the nginx folder
43-
COPY --from=0 build/dist /usr/share/nginx/html
40+
COPY --from=build-stage /app/dist /usr/share/nginx/html
4441
COPY docker/index.tpl.html /usr/share/nginx/html/index.html
4542
COPY logo.png /usr/share/nginx/html/favicon.png
4643
COPY docker/nginx.conf /etc/nginx/
4744
COPY docker/docker-run.sh /usr/local/bin
4845

4946
EXPOSE 80
5047

51-
CMD ["sh", "/usr/local/bin/docker-run.sh"]
48+
CMD ["sh", "/usr/local/bin/docker-run.sh"]

0 commit comments

Comments
 (0)