-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
38 lines (30 loc) · 836 Bytes
/
Dockerfile
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
# Use Python 3.10 as the base image
FROM python:3.10
# Set the working directory inside the container
WORKDIR /app
# Copy the application code to the working directory inside the container
COPY . /app
# Install the application dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set environment variables
ENV REDIS_URL $REDIS_URL
ENV REDIS_HOST $REDIS_HOST
ENV REDIS_PASSWORD $REDIS_PASSWORD
ENV REDIS_SSL $REDIS_SSL
ENV REDIS_PORT $REDIS_PORT
ENV PORT $PORT
# filesystem | redis
ENV SESSION_TYPE $SESSION_TYPE
# Debug mode
ENV DEBUG $DEBUG
# Dashboard
ENV PROFILER $PROFILER
ENV PROFILER_AUTH $PROFILER_AUTH
ENV PROFILER_USER $PROFILER_USER
ENV PROFILER_PASS $PROFILER_PASS
# Announcement
ENV ANNOUNCEMENT $ANNOUNCEMENT
# Expose the application port
EXPOSE $PORT
# Start the application
CMD ["python3","app.py"]