File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -30,22 +30,19 @@ RUN npm run build
30
30
31
31
# production stage
32
32
FROM nginx:stable-alpine as production-stage
33
- COPY --from=build-stage /app/dist /app
34
- COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
35
33
36
34
ENV PAGE_TITLE="RapiDoc"
37
35
ENV PAGE_FAVICON="favicon.png"
38
36
ENV SPEC_URL="http://petstore.swagger.io/v2/swagger.json"
39
37
ENV PORT=80
40
- ENV RAPIDOC_OPTIONS=
41
38
42
39
# 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
44
41
COPY docker/index.tpl.html /usr/share/nginx/html/index.html
45
42
COPY logo.png /usr/share/nginx/html/favicon.png
46
43
COPY docker/nginx.conf /etc/nginx/
47
44
COPY docker/docker-run.sh /usr/local/bin
48
45
49
46
EXPOSE 80
50
47
51
- CMD ["sh" , "/usr/local/bin/docker-run.sh" ]
48
+ CMD ["sh" , "/usr/local/bin/docker-run.sh" ]
You can’t perform that action at this time.
0 commit comments