-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 734 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (16 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:16-alpine
WORKDIR /app
RUN apk add ffmpeg python3 chromium nss freetype harfbuzz ca-certificates ttf-freefont yarn --no-cache --update
RUN ln -s /usr/bin/python3 /usr/bin/python
ADD ./ ./
RUN echo 'DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRESQL_PASSWORD}@${POSTGRESQL_URL}:${POSTGRESQL_PORT_NUMBER}/mydb?schema=public"' > .env
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
RUN addgroup -S pptruser && adduser -S -G pptruser win0bot \
&& mkdir -p /home/win0bot/Downloads /app \
&& chown -R win0bot:pptruser /home/win0bot \
&& chown -R win0bot:pptruser /app
USER win0bot
RUN npm install --also="dev"
RUN npm run build
CMD "npm" "run" "helm-start"