-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (24 loc) · 928 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
# syntax=docker/dockerfile:1
FROM python:3.11-slim-bullseye
LABEL maintainer="jamesaglynn10@gmail.com"
LABEL version="0.39"
LABEL description="This is the docker image for Class Forge"
ENV IN_DOCKER=true
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -yq tzdata
RUN ln -fs /usr/share/zoneinfo/Australia/Sydney /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata
ENV TZ="Australia/Sydney"
WORKDIR /home/class-forge/
COPY static /home/class-forge/static
COPY templates /home/class-forge/templates
RUN mkdir /home/class-forge/users
COPY main.py /home/class-forge/main.py
COPY functions.py /home/class-forge/functions.py
COPY requirements.txt /home/class-forge/requirements.txt
RUN python3 -m pip install --upgrade -r /home/class-forge/requirements.txt
RUN python3 -m playwright install
RUN python3 -m playwright install-deps
EXPOSE 80 443
CMD ["python3", "/home/class-forge/main.py"]