mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
17
Dockerfile
17
Dockerfile
@@ -1,16 +1,19 @@
|
|||||||
FROM node:10
|
FROM alpine:latest
|
||||||
# Create app directory
|
|
||||||
|
|
||||||
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
|
EXPOSE 9876
|
||||||
|
|
||||||
VOLUME [ "/conf" ]
|
VOLUME [ "/conf" ]
|
||||||
|
|
||||||
CMD node /index.js --no-daemon
|
CMD node index.js --no-daemon
|
||||||
Reference in New Issue
Block a user