forked from the-benchmarker/web-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (38 loc) · 921 Bytes
/
Copy pathDockerfile
File metadata and controls
54 lines (38 loc) · 921 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM debian:trixie-slim AS build
WORKDIR /usr/src/app
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -qq update && \
apt-get -y install --no-install-recommends \
build-essential \
git \
cmake \
{{#build_deps}}{{{.}}} {{/build_deps}} && \
rm -rf /var/lib/apt/lists/*
ENV GIT_SSL_NO_VERIFY=1
{{#files}}
COPY '{{source}}' '{{target}}'
{{/files}}
{{#download}}
RUN {{{.}}}
{{/download}}
{{#build}}
RUN {{{.}}}
{{/build}}
FROM debian:trixie-slim
WORKDIR /opt/web
RUN apt-get -qq update && \
apt-get -y install --no-install-recommends \
curl \
{{#bin_deps}}{{.}} {{/bin_deps}} && \
rm -rf /var/lib/apt/lists/*
{{#environment}}
ENV {{{.}}}
{{/environment}}
{{#files}}
COPY '{{source}}' '{{target}}'
{{/files}}
{{#binaries}}
COPY --from=build /usr/src/app/{{{.}}} {{{.}}}
{{/binaries}}
HEALTHCHECK CMD curl --fail http://0.0.0.0:3000 || exit 1
ENTRYPOINT {{{command}}}