-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 818 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 818 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
# Base image: Python 3.8 interpreter with slim buster linux
FROM python:3.8-slim
WORKDIR /usr/src/app
# Install Python dependancies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Environment variables
## Runtime environment - DEV, TEST or PROD; MUST be set at runtime
ENV APTD__ENV=NONE
## default data source is 'Simulation'
ENV APTD__DATASOURCE="1"
## default data sink is 'Console' with the following format
ENV APTD__DATASINK="1\n(console)::key: {} | value: {} | ts: {}"
# Copy source code into the container
COPY ./docker-entrypoint.sh ./docker-entrypoint.sh
COPY ./input_files ./input_files
COPY ./database.env ./database.env
COPY ./src/ ./src/
COPY ./main.py ./main.py
# Launch application entrypoint
RUN chmod +x ./docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]