blob: 2113c6487a2cf62d5f92d2f119d3ea03013935f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
RUN dnf -y install nodejs npm python make gcc && \
dnf clean all
ENV STARTUPLOG=/data/logs/nodejs/startup.log \
LOG_PATH=/data/logs/nodejs \
APP_PATH=/data/nodejs \
APP_MAIN=/data/nodejs/app.js
COPY *.sh /bin/
RUN chmod 775 /bin/run.sh && \
mkdir -p $APP_PATH && \
mkdir -p $LOG_PATH && \
touch $STARTUPLOG
COPY ./ $APP_PATH
RUN rm -f $APP_PATH/Dockerfile $APP_PATH/README.md $APP_PATH/run.sh $APP_PATH/docker-compose.yml
EXPOSE 8000
VOLUME [$APP_PATH,$LOG_PATH]
CMD ["/bin/run.sh"]
|