let Docker container generate new hafas-client install IDs 🐛
see derhuerst/bvg-rest#4
This commit is contained in:
parent
6c2d2c90f2
commit
ee70e6215e
2 changed files with 10 additions and 3 deletions
|
@ -3,11 +3,14 @@ FROM node:alpine
|
|||
WORKDIR /app
|
||||
ADD . /app
|
||||
|
||||
RUN npm install --production
|
||||
RUN apk add --update git bash && \
|
||||
npm install --production && \
|
||||
apk del git && \
|
||||
rm -rf /tmp/* /var/cache/apk/*
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENV HOSTNAME db.transport.rest
|
||||
ENV HOSTNAME 3.db.transport.rest
|
||||
ENV PORT 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
CMD ["/bin/sh", "docker-entrypoint.sh"]
|
||||
|
|
4
docker-entrypoint.sh
Executable file
4
docker-entrypoint.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
npm explore hafas-client -- npm run install
|
||||
npm start
|
Loading…
Reference in a new issue