-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 832 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ToDo: Finish this according to the guide
# https://docs.docker.com/get-started/part2/#tag-the-image
# and to check if scrapy needs an additional settings:
# https://github.com/scrapy-plugins/scrapy-splash
# Use an Floydhub deeplearning docker as a parent image
# https://github.com/floydhub/dl-docker
FROM floydhub/dl-docker:cpu
# FROM python:3.6
# Set the working directory of keep-current to /src
WORKDIR /src
# Copy the current directory contents into the container at /keep-current
ADD . /src
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Make port 9090 available to the world outside this container
EXPOSE 9090
# Define environment variable
ENV NAME World
# Run app.py when the container launches
CMD ["python", "keepcurrent/main.py"]