summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 2b3d1e3c1d03e13b96bc0af0d1c753dd1b34ad85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM node:18-alpine
WORKDIR /app
RUN apk add --no-cache python3 build-base
ADD package.json pnpm-lock.yaml /app/
RUN npm install -g pnpm
RUN pnpm install
COPY . /app/
RUN cp config/config.example.toml config/config.toml
# Always exit 0 here because TSC will fail while we're migrating to TypeScript but
# not everything uses TypeScript
RUN pnpm run build; exit 0
CMD pnpm run start