Updated build task

This commit is contained in:
Chris Plaatjes
2023-02-14 15:06:39 -05:00
parent 38d0539a5f
commit 993a94ddb1
2 changed files with 24 additions and 23 deletions

View File

@ -1,11 +1,14 @@
#Builds the bot from source
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-task
COPY . /build
RUN cd /build && dotnet publish
# Actually runs the bot
FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3
WORKDIR /app/teletok
RUN apk update && apk add --update nodejs nodejs-npm
RUN npm i -g tiktok-scraper
COPY bin/Debug/net6.0/* /app/teletok/
COPY --from=build-task /build/bin/Debug/net6.0/publish/* /app/teletok/
CMD [ "TeleTok" ]