2020-05-10 09:54:00 +02:00
|
|
|
FROM alpine
|
2017-11-29 21:57:02 +01:00
|
|
|
LABEL \
|
|
|
|
maintainer="Davide Alberani <da@erlug.linux.it>" \
|
|
|
|
vendor="RaspiBO"
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
RUN \
|
2020-05-10 09:54:00 +02:00
|
|
|
apk add --no-cache \
|
2017-11-29 21:57:02 +01:00
|
|
|
nodejs \
|
2020-05-10 09:54:00 +02:00
|
|
|
npm \
|
|
|
|
py3-pip \
|
|
|
|
py3-tornado && \
|
|
|
|
pip3 install pymongo
|
2017-11-29 21:57:02 +01:00
|
|
|
|
|
|
|
COPY . /ibt2
|
|
|
|
|
|
|
|
WORKDIR /ibt2/
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
npm install && \
|
2020-05-10 09:54:00 +02:00
|
|
|
node build/build.js && \
|
2017-11-29 21:57:02 +01:00
|
|
|
rm -rf node_modules
|
|
|
|
|
|
|
|
ENTRYPOINT ["./ibt2.py", "--mongo_url=mongodb://mongo", "--debug"]
|