-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (24 loc) · 884 Bytes
/
Dockerfile
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
29
30
31
32
33
34
35
# Use an official Python runtime as a parent image
FROM python:3.8-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Install curl, sudo, and procps
# Install required packages
RUN apt-get update && \
apt-get install -y curl wget sudo procps influxdb && \
rm -rf /var/lib/apt/lists/*
# Set the working directory in the containerdocker-compose up --build
WORKDIR /usr/src/app
# Copy the current directory contents into the container at /usr/src/app
#COPY . /usr/src/app
COPY requirements.txt /usr/src/app/
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install gunicorn
RUN pip install docker
RUN pip install psycopg2-binary
RUN pip install influxdb
RUN pip install pymonetdb
# Run the application
#CMD ["python", "manage.py", "runserver", "0.0.0.0:8001"]