update pathing on Dockerfile
This commit is contained in:
parent
081e0fca11
commit
e4ee88a421
|
@ -10,7 +10,6 @@ RUN npm install --legacy-peer-deps && mkdir /src && mv ./node_modules ./src
|
|||
WORKDIR /src
|
||||
|
||||
COPY . .
|
||||
|
||||
# Build the project and copy the files
|
||||
RUN npm run ng build -- --configuration production
|
||||
#RUN node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build -- --deploy-url=/ --prod
|
||||
|
@ -28,7 +27,7 @@ RUN mkdir -p /tmp/log/nginx
|
|||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
# Copy from the stage 1
|
||||
COPY --from=builder /src/dist /usr/share/nginx/html
|
||||
COPY --from=builder /src/src /usr/share/nginx/html
|
||||
RUN cp /usr/share/nginx/html/index.html /usr/share/nginx/html/index_base.html
|
||||
|
||||
EXPOSE 8080
|
||||
|
|
Loading…
Reference in New Issue