-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (24 loc) · 826 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
# Our base image is official python 3.7.7 for Alpine 3.11
# So this image only takes approximately 80 Mb of disk space
# https://hub.docker.com/_/python/
FROM python:3.7.7-alpine3.11
# Maintainer information
LABEL vendor="PET_PROJECT"
LABEL maintainer="igorbezr"
LABEL version="alpha"
# Make directory for project code
WORKDIR /usr/src/ixia_rest_wrapper
RUN mkdir src
# Copy source code from Developer workstation to image
COPY src/*.py src/
# Copy requirements and install required pip packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy demo script (if needed)
COPY demo.py .
# Setting up timezone properly (or it will be have UTC time)
ENV TZ='Europe/Moscow'
# Setting up stop signal
STOPSIGNAL SIGTERM
# Setting up python interpreter as an entry point
ENTRYPOINT ["python"]