forked from derhuerst/generate-gtfs-flex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
23 lines (18 loc) · 848 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
FROM node:alpine
LABEL org.opencontainers.image.title="generate-herrenberg-gtfs-flex"
LABEL org.opencontainers.image.description="Generate GTFS Flex for Herrenberg on-demand public transport service."
LABEL org.opencontainers.image.authors="Jannis R <[email protected]>"
LABEL org.opencontainers.image.documentation="https://github.com/derhuerst/generate-herrenberg-gtfs-flex"
LABEL org.opencontainers.image.source="https://github.com/derhuerst/generate-herrenberg-gtfs-flex"
LABEL org.opencontainers.image.licenses="ISC"
WORKDIR /app
ENV NODE_ENV=production
ENV npm_config_update-notifier=false
# for docker-entrypoint.sh
RUN apk add --no-cache bash moreutils
ADD package.json package-lock.json /app/
RUN npm install ci --only=production && npm cache clean --force
ADD . /app
RUN npm link
WORKDIR /gtfs
ENTRYPOINT ["/app/docker-entrypoint.sh"]