-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 753 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
# Set base image (host OS)
FROM python:3.12-alpine
# By default, listen on port 5000
EXPOSE 5000/tcp
# Set the working directory in the container
WORKDIR /app
ENV wildapiricot_api_key=
ENV OPENAI_API_KEY=
ENV account_id=
# Copy the dependencies file to the working directory
COPY requirements.txt .
# Print the contents of requirements.txt for debugging
RUN cat requirements.txt
# Update package manager and install build dependencies
RUN apk update && apk add --no-cache gcc musl-dev libffi-dev curl-dev
# Install any dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the content of the local app directory to the working directory
COPY . .
# Specify the command to run on container start
CMD [ "python", "./app/main.py" ]