Skip to content

Commit 8dd7cad

Browse files
committed
fix: docker
1 parent f9a73c6 commit 8dd7cad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile.ssr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ COPY ./package.json ./package-lock.json /app/
44
RUN npm install
55
COPY . /app
66
RUN npm run build:universal
7-
RUN npm run generate:prerender
7+
# RUN npm run generate:prerender
88
RUN npm run test:ssr
99

1010
FROM node:8-alpine
1111

1212
WORKDIR /app
1313
# Copy dependency definitions
1414
COPY --from=buildContainer /app/package.json /app
15-
COPY --from=buildContainer /app/server.js /app
15+
# COPY --from=buildContainer /app/server.js /app
1616

1717
# Get all the code needed to run the app
1818
COPY --from=buildContainer /app/dist /app/dist
19-
COPY --from=buildContainer /app/static /app/static
19+
# COPY --from=buildContainer /app/static /app/static
2020
COPY --from=buildContainer /app/dist-server /app/dist-server
2121

2222
# Expose the port the app runs in

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build:server": "ng run universal-demo:server:production",
1313
"build:prod": "ng build --prod",
1414
"build:universal": "ng run universal-demo:build:production && ng run universal-demo:server:production",
15-
"server": "node server.js",
15+
"server": "node dist-server/main.js",
1616
"test": "ng test",
1717
"test:ci": "cross-env CI=true ng test",
1818
"test:ssr": "run-p test:ssr:*",

0 commit comments

Comments
 (0)