forked from carlreid/StreamMaster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.template
More file actions
39 lines (29 loc) · 1.32 KB
/
Dockerfile.template
File metadata and controls
39 lines (29 loc) · 1.32 KB
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
LABEL org.opencontainers.image.url="https://hub.docker.com/r/carlreid/streammaster/" \
org.opencontainers.image.source="https://github.com/carlreid/StreamMaster" \
org.opencontainers.image.vendor="carlreid" \
org.opencontainers.image.title="Stream Master" \
org.opencontainers.image.description="Dockerized Stream Master by SenexCrenshaw" \
org.opencontainers.image.authors="carlreid,SenexCrenshaw"
WORKDIR /app
RUN mkdir /config
ENV PUID=0
ENV PGID=0
# Configure Postgres
COPY src/scripts/docker-entrypoint.sh src/scripts/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 StreamMaster files
COPY --from=sm /app/publish .
COPY --from=sm /app/publish/wwwroot ./wwwroot
COPY src/scripts/backup.sh /usr/local/bin/backup.sh
COPY src/scripts/restore.sh /usr/local/bin/restore.sh
COPY src/scripts/yt.sh /usr/local/bin/yt.sh
COPY src/scripts/entrypoint.sh /entrypoint.sh
COPY src/scripts/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 StreamMaster
EXPOSE 7095
# Expose Postgres
EXPOSE 5432
ENTRYPOINT ["/entrypoint.sh", "dotnet", "StreamMaster.API.dll"]
STOPSIGNAL SIGINT