Created
November 20, 2019 12:29
-
-
Save k2589/abe93775f2d631b6ee9b982cc9dd79dc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// heroku.yml | |
build: | |
docker: | |
web: Dockerfile.Heroku | |
config: | |
APP_NAME: $APP_NAME | |
LOGGING_CONSOLE: $LOGGING_CONSOLE | |
LOGGING_LEVEL: $LOGGING_LEVEL | |
run: | |
web: dotnet /var/osp.net/OneScript.WebHost.dll --urls http://*:$PORT | |
___________________ | |
// Dockerfile.Heroku | |
FROM k2589/oscriptweb4heroku:0.5.0 | |
COPY /src /app | |
ARG APP_NAME | |
ARG LOGGING_CONSOLE | |
ARG LOGGING_LEVEL | |
# Ставим зависимости указанные в packagedef | |
RUN curl -o deb oscript.io/Downloads/latest/deb && dpkg -i deb && cd /app && opm install -l | |
____________________ | |
// Для своего докерфайла | |
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 | |
ENV LANG ru_RU.UTF-8 | |
ENV ASPNETCORE_ENVIRONMENT=Production | |
COPY artifact/net461/debian-x64 /var/osp.net | |
WORKDIR /app | |
Где "artifact/net461/debian-x64" - каталог с распакованым oscript.web-debian-x64-core.zip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment