-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathDockerfile
27 lines (14 loc) · 739 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
FROM arm32v6/python:3.7-alpine
RUN apk add --update alpine-sdk linux-headers
COPY requirements.txt .
RUN export PIP_DEFAULT_TIMEOUT=100 && \
pip3 install --upgrade pip && pip3 install --upgrade setuptools && \
pip3 install -r requirements.txt
# Add the application
COPY ./app/*.py /
# Disable output buffering
ENV PYTHONUNBUFFERED=1
CMD ["python3","main.py"]
# docker run -it --privileged -p 5678:5678 --rm -v $PWD:/app --name enviroplus --env-file .env environment:latest
# docker run -it --privileged -p 5678:5678 --rm -v $PWD:/app --name enviroplus --env-file .env glovebox.azurecr.io/environment:latest
# docker run -d --privileged -p 5678:5678 --rm --name enviroplus --env-file .env environment:latest