-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (34 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
###
### Base image
###
FROM ubuntu:20.04 AS base
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
wget
# Certificates for github-cli.
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
# SQL import requisites.
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
gh \
mysql-client \
pv
# Score import requisites.
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
apt-transport-https \
dotnet-sdk-8.0
###
### Generator image
###
FROM base AS generator
WORKDIR /workdir
COPY . ./
WORKDIR /workdir/generator
RUN dotnet publish -c Release -o /out