caddy-log-converter/source/Dockerfile
2023-04-06 15:24:09 -03:00

10 lines
263 B
Docker

FROM mcr.microsoft.com/dotnet/sdk
RUN mkdir /app
COPY ./CaddyLog-To-AccessLog.ps1 /app
WORKDIR /app
ENV INFILE="caddy.log"
ENV OUTFILE="access.log"
ENTRYPOINT ["pwsh", "-command", "/app/CaddyLog-To-AccessLog.ps1", "-inFile", "$INFILE", "-outFile", "$OUTFILE"]