1
- FROM python:3.10.8-alpine
1
+ FROM ubuntu:latest
2
2
3
3
ENV PYTHONDONTWRITEBYTECODE=1
4
4
ENV PYTHONUNBUFFERED=1
5
- RUN addgroup -S python && adduser -S python -G python
6
- RUN apk update
7
- RUN apk add musl-dev mariadb-dev gcc
8
- RUN apk add graphviz-dev
9
- RUN pip install -U pipenv
10
- USER python
5
+ COPY Pipfile Pipfile.lock ./
6
+
7
+ RUN apt-get update -y
8
+ RUN apt-get install -y gcc default-libmysqlclient-dev pkg-config
9
+ RUN apt-get install mysql-client -y
10
+ RUN apt-get install graphviz graphviz-dev -y
11
+ RUN apt-get install python3 -y
12
+ RUN apt-get install python3-pip -y
13
+ RUN python3 -m pip install --upgrade pip
14
+ RUN pip3 install pipenv
15
+ RUN pipenv requirements > requirements.txt
16
+ RUN pip3 install -r requirements.txt
17
+
11
18
WORKDIR /home/python
12
- COPY --chown=python:python Pipfile Pipfile.lock ./
13
- RUN pipenv install --system --deploy
14
- COPY --chown=python:python /src .
15
- COPY --chown=python:python /gunicorn/gunicorn.py .
19
+ # RUN pipenv install --system --deploy
20
+ COPY /src .
21
+ COPY /gunicorn/gunicorn.py .
16
22
ENV PATH="/home/python/.local/bin:${PATH}"
17
23
EXPOSE 8000
18
- CMD ["gunicorn" , "signal_documentation.wsgi:application" , "-c" , "gunicorn.py" ]
24
+ CMD ["gunicorn" , "signal_documentation.wsgi:application" , "-c" , "gunicorn.py" ]
0 commit comments