-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (19 loc) · 832 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
FROM python:3.9.5
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN apt-get update && apt-get install -y gnupg2 curl
# Import the Microsoft GPG key
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
# Add the Microsoft SQL Server package repository
RUN curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list
# Install ODBC Driver
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17
# Install additional dependencies
RUN apt-get install -y unixodbc unixodbc-dev
RUN pip install -r requirements.txt
COPY . /code
WORKDIR /code
COPY ./entrypoint.sh /
ENTRYPOINT [ "sh","/entrypoint.sh" ]
# CMD [ "python3", "manage.py", "runserver", "0.0.0.0:8000" ]
# CMD [ "gunicorn", "eshop.wsgi:application", "--bind", "0.0.0.0:8000" ]