caddy-log-converter/source/Dockerfile

11 lines
263 B
Text
Raw Normal View History

2023-04-06 18:24:09 +00:00
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"]