first pass
This commit is contained in:
18
templates/python/standard/Dockerfile.template
Normal file
18
templates/python/standard/Dockerfile.template
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM python:{{PYTHON_VERSION}}-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application
|
||||
COPY . .
|
||||
|
||||
# Set environment
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PORT={{PORT}}
|
||||
|
||||
EXPOSE {{PORT}}
|
||||
|
||||
CMD ["python", "{{ENTRY_POINT}}"]
|
||||
Reference in New Issue
Block a user