Skip to content

Commit ec5abfc

Browse files
committed
refactor(docker): use "/srv/app/" path
1 parent 6d18f27 commit ec5abfc

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
@@ -1,18 +1,18 @@
11
# Serve Angular
22
FROM teracy/angular-cli AS development
33

4-
WORKDIR /app/
4+
WORKDIR /srv/app/
55

6-
COPY ./ /app/
6+
COPY ./ /srv/app/
77

88
RUN yarn
99

1010
# Build and compile Angular
1111
FROM node AS build
1212

13-
WORKDIR /app/
13+
WORKDIR /srv/app/
1414

15-
COPY --from=development /app/ /app/
15+
COPY --from=development /srv/app/ /srv/app/
1616

1717
ARG env=production
1818

@@ -21,6 +21,6 @@ RUN yarn run build --prod --configuration $env
2121
# Only the compiled app, ready for production with Nginx
2222
FROM nginx AS production
2323

24-
COPY --from=build /app/dist/ /usr/share/nginx/html/
24+
COPY --from=build /srv/app/dist/ /usr/share/nginx/html/
2525

2626
COPY ./nginx.conf /etc/nginx/conf.d/default.conf

0 commit comments

Comments
 (0)