adding dockerfile and compose files for hosting chessu in container
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user