Skip to content

Commit

Permalink
chore: settings dockerfile (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Apr 13, 2021
1 parent 052916b commit 2ed719b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM frolvlad/alpine-python2

FROM rcarmo/alpine-python:2.7
RUN apk --update add \
bash \
cmake \
Expand All @@ -8,12 +7,13 @@ RUN apk --update add \
g++ \
zlib-dev

ONBUILD COPY . /docker
ONBUILD RUN pip install -r /docker/requirements/dev.txt

# Define working directory.
WORKDIR /docker/
WORKDIR /docker

# Install.
# RUN \
# make install
EXPOSE 5000

# Define default command.
CMD ["bash"]
CMD gunicorn app:app -b :5000
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ version: '2'
services:
chatbot:
build: .
image: frolvlad/alpine-python2
image: rcarmo/alpine-python:2.7
ports:
- "5000:5000"
volumes:
- ./:/docker/
restart: always

0 comments on commit 2ed719b

Please sign in to comment.