-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 759 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
FROM node:22
# Screwdriver Version
ARG VERSION=latest
# Create our application directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# update npm
RUN npm install -g npm@~11.10.0
RUN npm cache clean -f
# Install Screwdriver API
RUN npm install --fetch-timeout=1200000 screwdriver-api@$VERSION
WORKDIR /usr/src/app/node_modules/screwdriver-api
# Setup configuration folder
RUN ln -s /usr/src/app/node_modules/screwdriver-api/config /config
# Expose the web service port
EXPOSE 8080
# Add dumb-init
RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1.2.5_x86_64
RUN chmod +x /usr/local/bin/dumb-init
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
# Run the service
CMD [ "node", "./bin/server" ]