FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
API/docker/API.Dockerfile at develop · OpenShock/API · GitHub
OpenShock
API
Repository navigation
Code
Issues
12
(12)
Pull requests
2
(2)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
API
/
docker
/
API.Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (15 loc) · 673 Bytes
Breadcrumbs
API
/
docker
/
API.Dockerfile
Copy path
File metadata and controls
23 lines (15 loc) · 673 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
syntax = devthefuture/dockerfile-x
FROM
./docker/Base.Dockerfile#build-common AS build-api
COPY
--link API/*.csproj API/
RUN
dotnet restore API/API.csproj
COPY
--link API/. API/
RUN
dotnet publish --no-restore -c Release API/API.csproj -o /app
#
final is the final runtime stage for running the app
FROM
mcr.microsoft.com/dotnet/aspnet:11.0.0-rc.1-alpine3.24 AS final-api
WORKDIR
/app
COPY
docker/entrypoint.sh /entrypoint.sh
RUN
chmod +x /entrypoint.sh
RUN
apk update && apk add --no-cache openssl
COPY
--link --from=build-api /app .
COPY
docker/appsettings.API.json /app/appsettings.Container.json
ENTRYPOINT
[
"/bin/ash"
,
"/entrypoint.sh"
,
"OpenShock.API.dll"
]
Back
|
FazBrowse Home
|
New Git URL