-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 621 Bytes
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) · 621 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
# The following Docker setup expects a config file to be mounted at:
#
# /home/tracksix/.tracksix.config.json
#
# E.g.
#
# docker run -v /path/to/local/config.json:/home/tracksix/.tracksix.config.json ghcr.io/bencevans/tracksix:latest
#
FROM node:lts-alpine
RUN addgroup -S tracksix && adduser -S -G tracksix tracksix
USER tracksix
# Set working directory
WORKDIR /app
# Install dependencies
COPY --chown=tracksix:tracksix package*.json ./
RUN npm ci --only=production
# Copy application code
# Using --chown to set ownership to tracksix user
COPY --chown=tracksix:tracksix . .
ENTRYPOINT [ "node", "bin.js" ]