TeleTok/Dockerfile

14 lines
308 B
Docker
Raw Normal View History

2023-02-14 15:06:39 -05:00
#Builds the bot from source
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-task
2023-02-13 19:18:34 -05:00
2023-02-14 15:06:39 -05:00
COPY . /build
RUN cd /build && dotnet publish
2023-02-13 19:18:34 -05:00
2023-02-14 15:06:39 -05:00
# Actually runs the bot
2023-02-14 15:13:30 -05:00
FROM mcr.microsoft.com/dotnet/runtime:6.0
2023-02-13 19:18:34 -05:00
2023-02-14 15:06:39 -05:00
WORKDIR /app/teletok
2023-02-13 19:18:34 -05:00
2023-02-14 15:06:39 -05:00
COPY --from=build-task /build/bin/Debug/net6.0/publish/* /app/teletok/
2023-02-13 19:18:34 -05:00
2023-02-14 15:29:55 -05:00
CMD [ "./TeleTok" ]