Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Dockerfile performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
runarsf committed Jun 13, 2019
1 parent 638701e commit 18b7532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
- DOCKER_MODE=True
- GIT_PYTHON_REFRESH=quiet
volumes:
- ./logs/bot.log:/app/logs/bot.log
- ./src:/app
#- ./logs/bot.log:/app/logs/bot.log
ports:
- 8080:8080
9 changes: 5 additions & 4 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM python

COPY ./src /app
WORKDIR /app

RUN apt-get update && \
apt-get install git -y && \
apt-get install python3 -y && \
apt-get install python3-pip -y

RUN python3 -m pip install -U -r ./requirements.txt
COPY ./src/requirements.txt /app/requirements.txt
RUN python3 -m pip install -U -r /app/requirements.txt

#COPY ./src /app
#WORKDIR /app

EXPOSE 8080

Expand Down

0 comments on commit 18b7532

Please sign in to comment.