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

Commit188ea55

Browse files
committed
Dockerized!
1 parent9e0c570 commit188ea55

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

‎Dockerfile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:16-slim AS build
2+
WORKDIR /app
3+
COPY ./package.json ./package-lock.json ./
4+
RUN npm ci
5+
COPY . ./
6+
RUN npm run build-app
7+
8+
FROM nginx:1.22.0
9+
COPY --from=build /app/app/dist /usr/share/nginx/html

‎app/webpack.config.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
newHtmlPlugin({
5151
template:path.resolve(__dirname,"index.html"),
5252
title:"Auto Automata",
53-
base:"./"
53+
base:"/auto-automata/"
5454
}),
5555
newCopyPlugin({
5656
patterns:[
@@ -67,4 +67,4 @@ module.exports = {
6767
port:9090,
6868
host:"0.0.0.0"
6969
}
70-
};
70+
};

‎docker-compose.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version:"3"
2+
3+
services:
4+
server:
5+
build:.
6+
ports:
7+
-80:80

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp