forked from github/safe-settings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (20 loc) · 714 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
25
FROM node:20-alpine
WORKDIR /opt/safe-settings
ENV NODE_ENV production
## Set the Labels
LABEL version="1.0" \
description="Probot app which is a modified version of Settings Probot GitHub App" \
maintainer="GitHub Professional Services <[email protected]>"
## These files are copied separately to allow updates
## to the image to be as small as possible
COPY package*.json /opt/safe-settings/
COPY index.js /opt/safe-settings/
COPY lib /opt/safe-settings/lib
## Install the app and dependencies
RUN npm ci
## This app will listen on port 3000
EXPOSE 3000
USER node
## This does not start properly when using the ['npm','start'] format
## so stick with just calling it outright
CMD npm start