instalinks/Dockerfile.app
oleg.vodyanov91@gmail.com a1bc1f5f87 move to another server
2025-04-22 01:14:21 +04:00

29 lines
701 B
Erlang

# Dockerfile
FROM python:3.12.9-slim-bookworm
# Create a working directory for the app
WORKDIR /app
# Copy requirements first, to leverage Docker's layer caching
COPY instalinks/instalinks/requirements.txt /app/
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt && \
apt update && apt install -y uwsgi which gcc vim telnet curl lsof
# Copy the rest of the source code
COPY instalinks/ /app/
COPY static /app/static
COPY running.sh /app/
COPY manage.py /app/
# Set environment variables for Django
ENV PYTHONUNBUFFERED 1
ENV DJANGO_SETTINGS_MODULE settings
# Expose the port Django runs on
EXPOSE 8000
# Default command: run the Django dev server
CMD /app/running.sh