Files
MD1200/PC_CONTROL_CODE/docker/.Dockerfile.kate-swp

6 lines
2.7 KiB
Plaintext
Raw Normal View History

Kate Swap File 2.0<14>j<EFBFBD>ؾr<D8BE><72>g<EFBFBD>ߠ<EFBFBD>O<EFBFBD><4F>
}m<>SRIR)RR0R"R6RR)R$R R R
R R RR RRGUUUUUUUUUUUUUUU U U U
U UUUUUUURUIC# Use latest .NET9.0 Framework Alpine release image from Microsoft.WCI5FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine-amd64W5WIV# No version arguments since this Dockerfile directly targets the development downloadWVWIN# TS3Audiobot images default to UID 9999. However, you may set UID to anythingWNIO# You may choose UID 1000 for convenience when mounting /app/data if you preferWOI ARG PUID=1600W IENV USER=ts3botWW I
'# Update repo to edge for latest yt-dlpW
'I 0RUN sed -i 's/v3.21/edge/' /etc/apk/repositoriesW 0W I 6# Install all pre-requisites and upgrade all packages.W 6I:# The upgrade is necessary to due to the edge repo change.W:IRUN apk update && \WI apk add \W I opus-dev \WI yt-dlp \W I ffmpeg && \WI apk upgradeWWI:# Download and install the TS3AudioBot development versionW:IRUN mkdir -p /app \WI && cd /app \WIY && echo "downloading https://splamy.de/api/nightly/projects/ts3ab/develop/download" \WYI^ && wget https://splamy.de/api/nightly/projects/ts3ab/develop/download -O TS3AudioBot.zip \W^I && unzip TS3AudioBot.zip \WI && rm TS3AudioBot.zipWWI# Add user to run underWI6RUN adduser --disabled-password -u "${PUID}" "${USER}"W6W I!5# Make data directory and chown it to the ts3bot userW!5I"RUN mkdir -p /app/dataW"I# RUN chown -R "${USER}" /app/dataW# W$I%6# Set user to ts3bot. No need for root past this pointW%6I&USER "${USER}"W&W'I(e# Set the workdir so users can properly mount their config files with -v /host/path/to/data:/app/dataW(eI)WORKDIR /app/dataW)W*I+# Expose the webserver portW+I, EXPOSE 58913W, W-I.;CMD ["dotnet", "/app/TS3AudioBot.dll", "--non-interactive"]W.;E