-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Dockerfile.template
33 lines (24 loc) · 1.1 KB
/
Dockerfile.template
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
LABEL org.opencontainers.image.url="https://hub.docker.com/r/SenexCrenshaw/streammaster/" \
org.opencontainers.image.source="https://github.com/SenexCrenshaw/StreamMaster" \
org.opencontainers.image.vendor="SenexCrenshaw" \
org.opencontainers.image.title="Stream Master" \
org.opencontainers.image.description="Dockerized Stream Master by SenexCrenshaw" \
org.opencontainers.image.authors="SenexCrenshaw"
WORKDIR /app
RUN mkdir /config
ENV PUID=0
ENV PGID=0
COPY --from=sm /app/publish .
COPY docker-entrypoint.sh docker-ensure-initdb.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh /usr/local/bin/docker-ensure-initdb.sh
RUN ln -sT docker-ensure-initdb.sh /usr/local/bin/docker-enforce-initdb.sh
COPY backup.sh /usr/local/bin/backup.sh
COPY restore.sh /usr/local/bin/restore.sh
COPY yt.sh /usr/local/bin/yt.sh
COPY entrypoint.sh /entrypoint.sh
COPY env.sh /env.sh
RUN chmod +x /entrypoint.sh /env.sh /usr/local/bin/backup.sh /usr/local/bin/restore.sh /usr/local/bin/yt.sh
EXPOSE 7095
EXPOSE 5432
ENTRYPOINT ["/entrypoint.sh", "dotnet", "StreamMaster.API.dll"]
STOPSIGNAL SIGINT