mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Upgrades OS for some base images, no expected issues. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
22 lines
512 B
Docker
22 lines
512 B
Docker
FROM ghcr.io/openfaas/classic-watchdog:0.2.0 as watchdog
|
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:2.1 as build
|
|
|
|
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
|
|
RUN chmod +x /usr/bin/fwatchdog
|
|
|
|
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
|
|
|
|
WORKDIR /application/
|
|
COPY src src
|
|
WORKDIR /application/src
|
|
RUN dotnet restore
|
|
RUN dotnet build
|
|
|
|
FROM build as runner
|
|
RUN groupadd -g 1000 -r faas && useradd -r -g faas -u 1000 faas -m
|
|
USER 1000
|
|
ENV fprocess="dotnet ./bin/Debug/netcoreapp2.1/root.dll"
|
|
EXPOSE 8080
|
|
CMD ["fwatchdog"]
|