docker!
This commit is contained in:
parent
840de4f534
commit
59aceb02f2
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
cache/
|
||||
out/
|
||||
node_modules/
|
||||
docker-compose.yml
|
||||
|
|
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM node:18 as build
|
||||
|
||||
WORKDIR /build/app
|
||||
COPY package.json pnpm-lock.yaml tsconfig.json /build/app/
|
||||
COPY src /build/app/src/
|
||||
COPY web /build/app/web/
|
||||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@latest --activate
|
||||
RUN pnpm install
|
||||
RUN pnpm run build
|
||||
|
||||
FROM node:18 as run
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/app/ /app/
|
||||
CMD ["node", "out"]
|
8
docker-compose.example.yml
Normal file
8
docker-compose.example.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
services:
|
||||
picvatar:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./cache:/app/cache
|
||||
ports:
|
||||
- 3000:3000
|
Loading…
Reference in a new issue