-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (21 loc) · 728 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (21 loc) · 728 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
FROM golang:1.26-bookworm AS builder
RUN apt update
RUN apt install -y git
RUN git clone --depth 1 https://github.com/MPZinke/typescript-jinja.git /typescript-jinja
WORKDIR /typescript-jinja
RUN go build -o tsgo ./cmd/tsgo
WORKDIR /usr
COPY ./src src
COPY ./tsconfig.json tsconfig.json
RUN /typescript-jinja/tsgo
# ---------------------- #
FROM python:3.13-slim
RUN apt update
RUN apt install -y jq
RUN pip3 install gunicorn
RUN pip3 install toml-cli
COPY ./pyproject.toml ./
RUN pip3 install $(toml get --toml-path pyproject.toml project.dependencies | sed -e "s/[']/\"/g" | jq -r '.[]')
COPY --from=builder ./src/trinkgo ./trinkgo
EXPOSE 443
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:443", "trinkgo.webapp.router:app"]