adding dockerfile and compose files for hosting chessu in container

This commit is contained in:
hprasa638
2024-10-14 16:08:09 +05:30
committed by hprasa638
parent 2ac873c5b1
commit 8fdbc660a5
5 changed files with 89 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:lts-alpine3.20
ENV PNPM_HOME=/usr/local/bin
WORKDIR /opt/chessu/
COPY . .
RUN apk update && \
corepack enable && corepack prepare pnpm@latest --activate && \
pnpm config set store-dir /opt/chessu/.pnpm-store && \
pnpm install -g pnpm@latest && \
pnpm install --unsafe-perm
ENTRYPOINT ["pnpm"]
CMD ["start"]