Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Test-CICD-Project-NgVu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nguyenvu
Test-CICD-Project-NgVu
Commits
f71ec691
Commit
f71ec691
authored
May 18, 2021
by
nguyenvu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cicd
parent
41547db8
Pipeline
#6930
failed with stages
in 9 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Dockerfile
Dockerfile
+15
-0
docker-compose.yaml
docker-compose.yaml
+16
-0
No files found.
Dockerfile
0 → 100644
View file @
f71ec691
FROM
mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR
/app
COPY
./ ./
RUN
ls
-la
RUN
dotnet restore
WORKDIR
/app/MEU.API
RUN
dotnet publish
-c
Release
-o
out
FROM
mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
RUN
chmod
1777 /tmp
RUN
mkdir
/data
RUN
apt-get update
&&
apt-get
install
-y
unattended-upgrades
&&
apt-get
install
-y
libgdiplus
WORKDIR
/app
COPY
--from=build /app/MEU.API/out/ ./
ENTRYPOINT
["dotnet", "MEU.API.dll"]
docker-compose.yaml
0 → 100644
View file @
f71ec691
version
:
'
3.5'
services
:
app
:
container_name
:
ENVIRONMENT-NAME-PROJECT-NAME
image
:
IMAGE-NAME:IMAGE-TAG
volumes
:
-
MOUNT-DATA-FOLDER/PROJECT-NAME:/data
ports
:
-
P-MAPPING:5000
env_file
:
-
.env
build
:
dockerfile
:
./
restart
:
unless-stopped
pull_policy
:
always
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment