Merge pull request #1 from AH-IT-SLTN/testing

Testing
This commit is contained in:
AH-IT-SLTN
2020-01-08 14:39:45 +01:00
committed by GitHub

View File

@@ -1,16 +1,19 @@
FROM node:10
# Create app directory
FROM alpine:latest
WORKDIR /
RUN mkdir -p /usr/src/
COPY package*.json ./
RUN apk add --update nodejs npm git
RUN npm install
RUN cd /usr/src && git clone https://github.com/orangecoding/fredy.git
COPY . .
RUN ln -s /usr/src/fredy/conf/ /conf
RUN cd /usr/src/fredy/ && npm install
WORKDIR /usr/src/fredy
EXPOSE 9876
VOLUME [ "/conf" ]
CMD node /index.js --no-daemon
CMD node index.js --no-daemon