-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
55 lines (47 loc) · 1.02 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM python:3.11-slim
COPY app /app
RUN python -m pip install /app --extra-index-url https://www.piwheels.org/simple
EXPOSE 8000/tcp
LABEL version="0.0.3"
ARG IMAGE_NAME
LABEL permissions='\
{\
"ExposedPorts": {\
"8000/tcp": {}\
},\
"HostConfig": {\
"Binds":["/usr/blueos/extensions/$IMAGE_NAME:/app"],\
"ExtraHosts": ["host.docker.internal:host-gateway"],\
"PortBindings": {\
"8000/tcp": [\
{\
"HostPort": ""\
}\
]\
}\
}\
}'
ARG AUTHOR
ARG AUTHOR_EMAIL
LABEL authors='[\
{\
"name": "$AUTHOR",\
"email": "$AUTHOR_EMAIL"\
}\
]'
ARG MAINTAINER
ARG MAINTAINER_EMAIL
LABEL company='{\
"about": "",\
"name": "$MAINTAINER",\
"email": "$MAINTAINER_EMAIL"\
}'
LABEL type="example"
ARG REPO
ARG OWNER
LABEL readme='https://raw.githubusercontent.com/$OWNER/$REPO/{tag}/README.md'
LABEL links='{\
"source": "https://github.com/$OWNER/$REPO"\
}'
LABEL requirements="core >= 1.1"
ENTRYPOINT litestar run --host 0.0.0.0