-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 852 Bytes
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 852 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
30
31
32
# ==========================================
# Copyright (c) 2021 Debmalya Pramanik #
# ==========================================
# -------------------------------------------------------------------
# Mnemonic: Dockerfile
# Abstract: Python Package Template Dockerfile
#
# Date: 15 July 2021
# Author: Debmalya Pramanik
# -------------------------------------------------------------------
FROM python:3.10-slim
ENV INSTALL_PATH /usr/src/app
RUN mkdir -p $INSTALL_PATH
# set working directory
WORKDIR $INSTALL_PATH
# install all requirements
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# copy all files and folder to docker
COPY . .
# install the package from source
RUN pip install --no-cache-dir .
# run the application in docker environment
# setup code for the same