mirror of
https://github.com/lemeow125/Notes.git
synced 2025-06-29 00:25:45 +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
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -32,3 +32,4 @@ yarn-debug.log*
|
||||||
yarn-error.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
|
WORKDIR /usr/local/app
|
||||||
COPY ./ /usr/local/app/
|
COPY ./ /usr/local/app/
|
||||||
|
RUN apk update && apk add git
|
||||||
RUN npm install --save-dev
|
RUN npm install --save-dev
|
||||||
RUN npm run build
|
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