Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadanasfattoum committed Dec 6, 2023
1 parent 05b2274 commit 67c2b0f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions posts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# start docker with kernal slim + install python 3.11
FROM python:3.11.6-slim-bullseye

# option linux : python
ENV PYTHONUNBUFFERED = 1

# update linux #لمساعدة تنزيل المكتباب المبنية بالبايث gcc
RUN apt-get update && apt-get -y install gcc libpq-dev

# create folder ----> project
WORKDIR /app

# pip freeze > requirements.txt

# copy requirements.txt file
COPY requirements.txt /app/requirements.txt

# install all libraries # -r read
RUN pip install -r /app/requirements.txt

# copy all project files
COPY . /app/

0 comments on commit 67c2b0f

Please sign in to comment.