-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (24 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
26 lines (24 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app
COPY ./mastacrss .
ARG Version
ARG AssemblyVersion
ARG FileVersion
ARG InformationalVersion
RUN dotnet publish -c Release -o out -r linux-x64 \
-p:Version=$Version \
-p:AssemblyVersion=$AssemblyVersion \
-p:FileVersion=$FileVersion \
-p:InformationalVersion=$InformationalVersion
# Build runtime image
FROM mcr.microsoft.com/dotnet/runtime:8.0
WORKDIR /app
RUN apt-get update \
&& apt-get -y install supervisor \
&& rm -rf /var/lib/apt/lists/*
# supervisord.confをコピー
COPY docker/supervisord.conf /etc/supervisord.conf
COPY docker/entrypoint.sh /entrypoint.sh
COPY --from=build-env /app/out .
# supervisordを実行
ENTRYPOINT ["/entrypoint.sh"]