forked from VKCOM/kphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
16 lines (13 loc) · 840 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends apt-utils ca-certificates gnupg wget && \
wget -qO /etc/apt/trusted.gpg.d/vkpartner.asc https://artifactory-external.vkpartner.ru/artifactory/api/gpg/key/public && \
echo "deb https://artifactory-external.vkpartner.ru/artifactory/kphp focal main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends kphp php7.4-vkext vk-flex-data vk-tl-tools && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/www/vkontakte/data/www/vkontakte.com/tl/ && \
tl-compiler -e /var/www/vkontakte/data/www/vkontakte.com/tl/scheme.tlo -w 4 \
/usr/share/vkontakte/examples/tl-files/common.tl /usr/share/vkontakte/examples/tl-files/tl.tl
RUN useradd -ms /bin/bash kitten