mirror of
https://github.com/lemeow125/Notes.git
synced 2025-06-28 08:05:44 +08:00
Compare commits
2 commits
68d0bc3792
...
837b8cfed4
Author | SHA1 | Date | |
---|---|---|---|
837b8cfed4 | |||
0a1d7ac72a |
4 changed files with 11 additions and 2 deletions
1
.env.sample
Normal file
1
.env.sample
Normal file
|
@ -0,0 +1 @@
|
|||
PORT=9001
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -31,4 +31,5 @@ npm-debug.log*
|
|||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
.vscode
|
||||
.vscode
|
||||
.env
|
|
@ -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
6
docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
env_file: .env
|
||||
ports:
|
||||
- "${PORT}:80"
|
Loading…
Add table
Add a link
Reference in a new issue