mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Dockerfiles cleanup
This commit is contained in:
parent
0854b713f1
commit
00d3ac4eb6
4 changed files with 16 additions and 16 deletions
|
@ -1,14 +1,14 @@
|
|||
FROM microsoft/dotnet:2.1-sdk AS build-env
|
||||
FROM microsoft/dotnet:2.1-sdk AS build
|
||||
ENV NET_CORE_VERSION netcoreapp2.1
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY ArchiSteamFarm ArchiSteamFarm
|
||||
RUN dotnet --info && \
|
||||
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=generic /p:LinkDuringPublish=false && \
|
||||
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/ArchiSteamFarm-Service.sh"
|
||||
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7 AS runtime
|
||||
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
||||
EXPOSE 1242
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/ArchiSteamFarm/out ./
|
||||
COPY --from=build /app/ArchiSteamFarm/out .
|
||||
ENTRYPOINT ["./ArchiSteamFarm-Service.sh", "--no-restart", "--process-required", "--system-required"]
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
FROM microsoft/dotnet:2.1-sdk AS build-env
|
||||
FROM microsoft/dotnet:2.1-sdk AS build
|
||||
ENV NET_CORE_VERSION netcoreapp2.1
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY ArchiSteamFarm ArchiSteamFarm
|
||||
RUN dotnet --info && \
|
||||
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=generic /p:LinkDuringPublish=false && \
|
||||
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm-Service.sh" "ArchiSteamFarm/out/ArchiSteamFarm-Service.sh"
|
||||
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim AS runtime
|
||||
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
||||
EXPOSE 1242
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/ArchiSteamFarm/out ./
|
||||
COPY --from=build /app/ArchiSteamFarm/out .
|
||||
ENTRYPOINT ["./ArchiSteamFarm-Service.sh", "--no-restart", "--process-required", "--system-required"]
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
FROM microsoft/dotnet:2.1-sdk AS build-env
|
||||
FROM microsoft/dotnet:2.1-sdk AS build
|
||||
ENV NET_CORE_VERSION netcoreapp2.1
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY ArchiSteamFarm ArchiSteamFarm
|
||||
RUN dotnet --info && \
|
||||
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker /p:LinkDuringPublish=false && \
|
||||
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
|
||||
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim-arm32v7 AS runtime
|
||||
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
||||
EXPOSE 1242
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/ArchiSteamFarm/out ./
|
||||
COPY --from=build /app/ArchiSteamFarm/out .
|
||||
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
FROM microsoft/dotnet:2.1-sdk AS build-env
|
||||
FROM microsoft/dotnet:2.1-sdk AS build
|
||||
ENV NET_CORE_VERSION netcoreapp2.1
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
COPY ArchiSteamFarm ArchiSteamFarm
|
||||
RUN dotnet --info && \
|
||||
dotnet publish ArchiSteamFarm -c Release -f "$NET_CORE_VERSION" -o out /nologo /p:ASFVariant=docker /p:LinkDuringPublish=false && \
|
||||
cp "ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh" "ArchiSteamFarm/out/ArchiSteamFarm.sh"
|
||||
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim
|
||||
FROM microsoft/dotnet:2.1-runtime-stretch-slim AS runtime
|
||||
LABEL maintainer="JustArchi <JustArchi@JustArchi.net>"
|
||||
EXPOSE 1242
|
||||
WORKDIR /app
|
||||
COPY --from=build-env /app/ArchiSteamFarm/out ./
|
||||
COPY --from=build /app/ArchiSteamFarm/out .
|
||||
ENTRYPOINT ["./ArchiSteamFarm.sh", "--no-restart", "--process-required", "--system-required"]
|
||||
|
|
Loading…
Reference in a new issue