forked from harness-community/python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
29 lines (21 loc) · 861 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
29
FROM python:3.5.1-alpine
MAINTAINER Greg Taylor <gtaylor@gc-taylor.com>
# Create the wheeldir directory
RUN mkdir -p /opt/app/wheeldir
FROM python:3.10-slim
# Install necessary dependencies
RUN apt-get update && apt-get install -y python3-pip ca-certificates
# Update pip, setuptools, and wheel
RUN pip install --upgrade --no-cache-dir pip setuptools wheel
# Set custom certificate path in pip config
RUN pip config set global.cert /etc/ssl/certs/ca-certificates.crt
RUN pip install --upgrade pip setuptools wheel
# These are copied and installed first in order to take maximum advantage
# of Docker layer caching (if enabled).
COPY *requirements.txt /opt/app/src/
#RUN pip install --no-index --find-links=/opt/app/wheeldir -r /opt/app/src/requirements.txt
COPY . /opt/app/src/
WORKDIR /opt/app/src
RUN python setup.py install
EXPOSE 5000
CMD dronedemo