Skip to content

Commit

Permalink
Merge pull request #93 from IzStriker/fix-k8s
Browse files Browse the repository at this point in the history
feat: run the app in an ubuntu container
  • Loading branch information
djpiper28 authored Feb 28, 2024
2 parents 2894c09 + 0579724 commit 06fac44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ WORKDIR /app/WakaBot.Web
RUN dotnet restore
RUN dotnet publish -c Release -o /app/out

FROM mcr.microsoft.com/dotnet/aspnet:6.0
RUN mkdir /app
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y aspnetcore-runtime-6.0

WORKDIR /app/
RUN useradd -m app
WORKDIR /home/app/

RUN chmod -R 600 .
COPY --from=build-env /app/out .
Expand Down

0 comments on commit 06fac44

Please sign in to comment.