init
This commit is contained in:
28
backend/dockerfile
Normal file
28
backend/dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# Use the official Python image from the Docker Hub
|
||||
FROM python:3.11-slim
|
||||
|
||||
# Set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV SSL False
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the requirements file and install dependencies
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip config set global.trusted-host \
|
||||
"pypi.org files.pythonhosted.org pypi.python.org" \
|
||||
--trusted-host=pypi.python.org \
|
||||
--trusted-host=pypi.org \
|
||||
--trusted-host=files.pythonhosted.org
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
|
||||
|
||||
# Copy the project files
|
||||
COPY . .
|
||||
Reference in New Issue
Block a user