BETTERZON-49 (#24)

* BETTERZON-49: Creating Dockerfile

* BETTERZON-49: Added minimal Flask API as Docker container

Co-authored-by: Patrick Müller <patrick@mueller-patrick.tech>
This commit is contained in:
henningandPaddy authored and GitHub committed 2021-04-07 23:34:08 +02:00
1 parent 4d4a391f38
commit 55a019d217
5 files changed
+46 -1

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Base image
FROM python
# Create directories and copy files
RUN echo 'Creating directory and copying files'
RUN mkdir /crawler
ADD . /crawler
WORKDIR /crawler
# Install dependencies
RUN echo 'Installing dependencies'
RUN pip install -r requirements.txt
# Expose ports
RUN echo 'Exposing ports'
EXPOSE 22026
# Start API
RUN echo 'Starting API'
CMD ["python3", "api.py"]