-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (24 loc) · 953 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
33
34
35
FROM python:3.12-slim
# standard thing
ENV PYTHONUNBUFFERED 1
# add this directory to the python path so if the file isnt found it looks here. strangely Steven has this as a string
ENV PYTHONPATH "/app"
#ENV PYTHONPATH /app
RUN apt-get update
RUN python3 -m pip install --upgrade pip
WORKDIR /app
COPY requirements.txt /app
RUN python -m pip install -r requirements.txt
COPY convert_image/ convert_image/
ENTRYPOINT ["python", "-m", "convert_image"]
# FROM python:3.9-slim
# ENV PYTHONDONTWRITEBYTECODE 1 # dont compile any pthonC files
# ENV PYTHONUNBUFFERED 1 # standard thing
# ENV PYTHONPATH "/app" # add this directory to the python path so if the file isnt found
# RUN apt update
# RUN python -m pip install --upgrade pip # pip not in -slim version of python
# WORKDIR /app
# COPY requirements.txt .
# RUN python -m pip install -r requirements.txt
# COPY invert-image/ invert-image/
# ENTRYPOINT [ "python", "-m", "invert-image" ]