Files
zhijie-ERP/Dockerfile
T

23 lines
495 B
Docker

FROM python:2.7-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app
# Install Python dependencies
# Using PyMySQL which is pure python, so we might not need gcc/mysql-client-dev
COPY Install/requirements.txt /app/Install/requirements.txt
RUN pip install --no-cache-dir -r Install/requirements.txt
# Copy project
COPY . /app/
# Expose port
EXPOSE 8000
# Run server
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]