This commit is contained in:
Lea 2024-06-16 22:31:37 +02:00
parent 840de4f534
commit 59aceb02f2
Signed by: Lea
GPG key ID: 1BAFFE8347019C42
3 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
cache/
out/
node_modules/
docker-compose.yml

15
Dockerfile Normal file
View 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"]

View file

@ -0,0 +1,8 @@
services:
picvatar:
build: .
restart: unless-stopped
volumes:
- ./cache:/app/cache
ports:
- 3000:3000