-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile.backend
More file actions
38 lines (28 loc) · 986 Bytes
/
Dockerfile.backend
File metadata and controls
38 lines (28 loc) · 986 Bytes
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
31
32
33
34
35
36
37
38
# Backend Dockerfile for automated deployments (CI/CD)
# This Dockerfile is used by docker-publish-backend.yml workflow
# It copies the backend directory from the repository root
FROM python:3.11-slim
ARG VYMANAGER_VERSION=dev
ARG VYMANAGER_ENV=production
ENV VYMANAGER_VERSION=${VYMANAGER_VERSION}
ENV VYMANAGER_ENV=${VYMANAGER_ENV}
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Copy backend requirements
COPY backend/requirements.txt requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy backend application code
COPY backend/ .
# Copy and set entrypoint script
COPY backend/docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Expose port
EXPOSE 8000
# Use entrypoint script (imports custom CAs, then starts uvicorn)
ENTRYPOINT ["docker-entrypoint.sh"]