Skip to content

Commit

Permalink
Докерфайлы для разных редакций
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Oct 21, 2024
1 parent 44709af commit cb881db
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
17 changes: 17 additions & 0 deletions install/builders/base-image/Dockerfile.mono
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:18.04

# MAINTAINER EvilBeaver <[email protected]>

ENV LANG ru_RU.UTF-8

RUN apt update \
&& apt-get -y install locales tzdata \
&& locale-gen ru_RU && locale-gen ru_RU.UTF-8 \
&& update-locale LANG=ru_RU.UTF-8 \
&& apt install -y gnupg ca-certificates \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
&& sh -c 'echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" > /etc/apt/sources.list.d/mono-official-stable.list' \
&& apt-get update \
&& apt-get -y install mono-runtime binutils curl mono-devel ca-certificates-mono mono-vbnc referenceassemblies-pcl mono-fastcgi-server4 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*
11 changes: 11 additions & 0 deletions install/builders/base-image/Dockerfile_v1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM evilbeaver/mono-ru:6.12

# Файл базируется на моно с русской локалью
# Устанавливает через ovm версию движка

LABEL MAINTAINER="EvilBeaver <[email protected]>"

ARG VERSION=stable

RUN curl -L https://github.com/oscript-library/ovm/releases/latest/download/ovm.exe > ovm.exe \
&& mono ovm.exe use --install $VERSION
20 changes: 20 additions & 0 deletions install/builders/base-image/Dockerfile_v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM evilbeaver/onescript:1.9.2

# Использует в качестве системы с ovm и mono образ onescript, создаваемый из файла Dockerfile_v1 (лежит рядом в репо)
# Потом копирует бинари из него в образ от Microsoft

LABEL MAINTAINER="EvilBeaver <[email protected]>"

ARG VERSION="dev"

# Установка FDD двойки через ovm, имеющийся в базовом образе
RUN mono ovm.exe install --fdd ${VERSION}

# Основной образ
FROM mcr.microsoft.com/dotnet/aspnet:6.0

ARG VERSION="dev"

RUN mkdir -p /var/oscript
COPY --from=0 /root/.local/share/ovm/${VERSION}/ /var/oscript/
ENV PATH="$PATH:/var/oscript/bin"

0 comments on commit cb881db

Please sign in to comment.