This commit is contained in:
@ -1,18 +0,0 @@
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: default
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: Build
|
||||
commands:
|
||||
- docker build -t aspnetapp .
|
||||
- name: Stop containers
|
||||
commands:
|
||||
- docker-compose down --remove-orphans
|
||||
- name: Start containers
|
||||
commands:
|
||||
- docker-compose up -d
|
@ -1,17 +0,0 @@
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
|
||||
WORKDIR /app
|
||||
COPY *.sln ./
|
||||
COPY OD.WebApplication/*.csproj OD.WebApplication/
|
||||
RUN dotnet restore
|
||||
|
||||
COPY . ./
|
||||
RUN dotnet publish -c Release -o out --no-restore
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as base
|
||||
WORKDIR /app
|
||||
ENV ASPNETCORE_ENVIRONMENT=Production
|
||||
|
||||
COPY --from=build-env /app/out .
|
||||
RUN mkdir -p logs
|
||||
EXPOSE 80 443
|
||||
ENTRYPOINT ["dotnet", "OD.WebApplication.dll"]
|
@ -1,12 +0,0 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
odimporter:
|
||||
image: aspnetapp:latest
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.odimporter.entryPoints=web-secure
|
||||
- traefik.http.routers.odimporter.rule=Host(`odoo.fosc.space`)
|
||||
- traefik.http.routers.odimporter.tls.certresolver=default
|
||||
- traefik.http.services.odimporter.loadbalancer.server.port=80
|
Reference in New Issue
Block a user