Compare commits

..

2 commits

Author SHA1 Message Date
837b8cfed4 Update Dockerfile 2025-04-14 23:47:04 +08:00
0a1d7ac72a Add docker-compose.yml 2025-04-14 23:42:07 +08:00
4 changed files with 11 additions and 2 deletions

1
.env.sample Normal file
View file

@ -0,0 +1 @@
PORT=9001

1
.gitignore vendored
View file

@ -32,3 +32,4 @@ yarn-debug.log*
yarn-error.log*
.vscode
.env

View file

@ -1,7 +1,8 @@
FROM node:18-alpine as build
FROM node:23-alpine AS build
WORKDIR /usr/local/app
COPY ./ /usr/local/app/
RUN apk update && apk add git
RUN npm install --save-dev
RUN npm run build

6
docker-compose.yml Normal file
View file

@ -0,0 +1,6 @@
services:
app:
build: .
env_file: .env
ports:
- "${PORT}:80"