Merge pull request #68 from SuperSandro2000/docker

Docker improvements
This commit is contained in:
Tzahi12345
2020-05-01 14:49:32 -04:00
committed by GitHub
2 changed files with 9 additions and 13 deletions

View File

@@ -1,2 +1,4 @@
node_modules
*.exe
*.exe
docker-compose.yml
Dockerfile

View File

@@ -1,24 +1,18 @@
FROM alpine:3.11
RUN \
apk add --update npm python ffmpeg && \
apk add --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
apk add --no-cache npm python ffmpeg && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
atomicparsley
# Change directory so that our commands run inside this new directory
WORKDIR /app
# Copy dependency definitions
COPY ./ /app/
COPY package.json /app/
# Change directory to backend
WORKDIR /app
# Install dependencies on backend
RUN npm install
# Expose the port the app runs in
COPY ./ /app/
EXPOSE 17442
# Run the specified command within the container.
CMD [ "node", "app.js" ]
CMD [ "node", "app.js" ]