Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
KPI Reporting Generator
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
backend
scripts
KPI Reporting Generator
Commits
a3493bc6
Commit
a3493bc6
authored
11 months ago
by
Petar Hristov
Browse files
Options
Downloads
Patches
Plain Diff
Added dockerfile
parent
1a2816d3
Branches
Issue/2982-kpiDataPub
No related tags found
1 merge request
!38
New: Data Publication KPIs
Pipeline
#1452979
passed
11 months ago
Stage: build
Stage: publish
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/KpiGenerator/Dockerfile
+33
-0
33 additions, 0 deletions
src/KpiGenerator/Dockerfile
with
33 additions
and
0 deletions
src/KpiGenerator/Dockerfile
0 → 100644
+
33
−
0
View file @
a3493bc6
FROM
mcr.microsoft.com/dotnet/sdk:8.0
AS
build-env
WORKDIR
/App
# Copy everything
COPY
. ./
# Add nuget sources for private packages (here: api-client)
RUN
dotnet nuget add
source
"https://git.rwth-aachen.de/api/v4/projects/88930/packages/nuget/index.json"
-n
"api-client"
# Restore as distinct layers
RUN
dotnet restore
# Build and publish a release
RUN
dotnet publish
-c
Release
-o
out
# Build runtime image
FROM
mcr.microsoft.com/dotnet/aspnet:8.0
# Install cron and other necessary packages
RUN
apt-get update
&&
\
apt-get
install
-y
cron
&&
\
apt-get clean
WORKDIR
/App
COPY
--from=build-env /App/out .
# Set the build-time argument and default environment variable
ENV
DOTNET_ENVIRONMENT=Development
# Create the log file
RUN
touch
/var/log/cron.log
ENTRYPOINT
/bin/sh -c "/App/Coscine.KpiGenerator all"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment