-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 803 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
FROM node:22-alpine@sha256:4d64b49e6c891c8fc821007cb1cdc6c0db7773110ac2c34bf2e6960adef62ed3
WORKDIR /opt/safe-settings
ENV NODE_ENV production
ENV HOST=0.0.0.0
## Set the Labels
LABEL version="1.0" \
description="Probot app which is a modified version of Settings Probot GitHub App" \
maintainer="GitHub Professional Services <services@github.com>"
## 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