Commit f71ec691 authored by nguyenvu's avatar nguyenvu

update cicd

parent 41547db8
Pipeline #6930 failed with stages
in 9 seconds
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"]
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment