-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
24 lines (18 loc) · 724 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## this is stage two , where the app actually runs
FROM node:18-alpine3.18
ARG SWAGGER_URL=https://api.mochi.console.so/swagger/doc.json
ENV SWAGGER_URL=$SWAGGER_URL
ARG NODE_ENV=production
ENV NODE_ENV=$NODE_ENV
WORKDIR /usr/src/app
RUN apk add --no-cache python3 py3-pip make build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev imagemagick
RUN apk add font-terminus font-inconsolata font-dejavu font-noto font-noto-cjk font-awesome font-noto-extra
# Copy the package.json and package-lock.json files to the working directory
COPY package.json ./
COPY pnpm-lock.yaml ./
# Install the dependencies
RUN npm install -g pnpm && \
pnpm install -P && \
pnpm up '@consolelabs/*' --latest
COPY . .
CMD pnpm start