mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2026-09-15 17:36:49 +00:00
BETTERZON-49: Creating Dockerfile
This commit is contained in:
@@ -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", "main.py"]
|
||||||
Reference in New Issue
Block a user