chore: re-initialize git repository for deployment
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user