Socialify

Folder ..

Viewing Dockerfile
30 lines (21 loc) • 800.0 B

 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
# Use an official Python runtime as a parent image
FROM python:3.12-slim

# Set environment variables to prevent Python from writing pyc files and to ensure output is unbuffered
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1

# Create and set the working directory
WORKDIR /yugen

# Copy the requirements file into the container
COPY requirements.txt /yugen/

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application code into the container
COPY . /yugen/

# Copy the entry point script into the container
COPY entrypoint.sh /yugen/

# Make the entry point script executable
RUN chmod +x /yugen/entrypoint.sh

# Expose port 8000 for the Django application
EXPOSE 8000

# Use the entry point script
ENTRYPOINT ["/yugen/entrypoint.sh"]