-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 883 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:22-slim
RUN apt-get update && apt-get install -y \
gnupg2 \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
# https://probot.github.io/docs/configuration/
# Comment NODE_ENV out for development to include smee-client proxy
ENV NODE_ENV="production"
ENV HUSKY=0
RUN npm ci --omit=dev && npm cache clean --force
# For development to include smee-client proxy, comment out the above line and use this instead:
# RUN npm ci && npm cache clean --force
COPY . ./
COPY scripts/setup.sh ./setup.sh
RUN npm run build
# Copy GPG configuration files to ~/.gnupg and GPG cache refresh script to /usr/local/bin
RUN mkdir -p ~/.gnupg && \
cp scripts/gpg.conf ~/.gnupg/gpg.conf && \
chmod 700 ~/.gnupg && \
chmod 600 ~/.gnupg/gpg.conf && \
chown -R root:root ~/.gnupg
CMD [ "/bin/bash", "./setup.sh" ]