Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb271a01

Browse files
committed
Use Docker multi-stage build for website generate
1 parent6e0f3bd commitb271a01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
FROM nginx
1+
FROM node:16-slim as builder
2+
COPY . .
3+
RUN npm install
4+
RUN npm run build
25

3-
COPY build /usr/share/nginx/html
6+
FROM nginx
7+
COPY --from=builder build /usr/share/nginx/html

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp