DEVOPS'd
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-07-13 04:03:45 +02:00
parent 256257d394
commit 0da67c4717
3 changed files with 0 additions and 0 deletions

View File

@ -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

View File

@ -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"]

View File

@ -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