-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 927 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
26
27
28
29
30
FROM node:alpine
LABEL org.opencontainers.image.title="delay-prediction-service"
LABEL org.opencontainers.image.description="Predict delays for Herrenberg buses."
LABEL org.opencontainers.image.authors="Jannis R <mail@jannisr.de>, Stadtnavi contributors"
LABEL org.opencontainers.image.documentation="https://github.com/stadtnavi/delay-prediction-service"
LABEL org.opencontainers.image.source="https://github.com/stadtnavi/delay-prediction-service"
LABEL org.opencontainers.image.revision="1"
LABEL org.opencontainers.image.licenses="ISC"
WORKDIR /app
RUN apk add --no-cache --update \
bash \
curl \
unzip \
postgresql-client \
moreutils
ADD 'https://github.com/johnkerl/miller/releases/download/v5.10.2/mlr.linux.x86_64' /usr/bin/mlr
RUN chmod +x /usr/bin/mlr
ADD package.json package-lock.json /app/
RUN npm ci && npm cache clean --force
WORKDIR /app
ADD . /app
EXPOSE 3000
ENV PORT 3000
CMD ["node", "index.js"]