forked from alexanderfefelov/docker-1c-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (33 loc) · 1.76 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
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
ENV GOSU_VERSION 1.7
RUN apt-get -qq update \
&& apt-get -qq install --yes --no-install-recommends ca-certificates wget locales \
&& `#----- Install the dependencies -----` \
&& apt-get -qq install --yes --no-install-recommends fontconfig imagemagick \
&& `#----- Deal with ttf-mscorefonts-installer -----` \
&& apt-get -qq install --yes --no-install-recommends xfonts-utils cabextract \
&& wget --quiet --output-document /tmp/ttf-mscorefonts-installer_3.6_all.deb http://ftp.us.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_3.6_all.deb \
&& dpkg --install /tmp/ttf-mscorefonts-installer_3.6_all.deb 2> /dev/null \
&& rm /tmp/ttf-mscorefonts-installer_3.6_all.deb \
&& `#----- Install gosu -----` \
&& wget --quiet --output-document /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true
RUN localedef --inputfile ru_RU --force --charmap UTF-8 --alias-file /usr/share/locale/locale.alias ru_RU.UTF-8
ENV LANG ru_RU.utf8
ADD *.deb /tmp/
ENV PLATFORM_VERSION 83
ENV SERVER_VERSION 8.3.10-2639
RUN dpkg --install /tmp/1c-enterprise$PLATFORM_VERSION-common_${SERVER_VERSION}_amd64.deb 2> /dev/null \
&& dpkg --install /tmp/1c-enterprise$PLATFORM_VERSION-server_${SERVER_VERSION}_amd64.deb 2> /dev/null \
&& rm /tmp/*.deb \
&& mkdir --parent /var/log/1C /home/usr1cv8/.1cv8/1C/1cv8/conf \
&& chown --recursive usr1cv8:grp1cv8 /var/log/1C /home/usr1cv8
COPY container/docker-entrypoint.sh /
COPY container/logcfg.xml /home/usr1cv8/.1cv8/1C/1cv8/conf
ENTRYPOINT ["/docker-entrypoint.sh"]
VOLUME /home/usr1cv8
VOLUME /var/log/1C
EXPOSE 1540-1541 1560-1591
CMD ["ragent"]