-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
57 lines (44 loc) · 1.45 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
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM demoncat/onec-base:latest as base
LABEL org.opencontainers.image.authors="Ruslan Zhdanov <[email protected]> (@TheDemonCat)"
LABEL org.opencontainers.image.source="https://github.com/thedemoncat/onec-server"
ARG ONEC_USERNAME
ARG ONEC_PASSWORD
ARG ONEC_VERSION
ARG TYPE=platform83
ARG ONEGET_VER=v0.5.2
RUN set -xe; \
apt update; \
apt install -y \
curl \
bash \
gzip \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
geoclue-2.0; \
rm -rf /var/lib/apt/lists/*
#start_oneget
RUN set -xe; \
mkdir /tmp/onec; \
cd /tmp/onec; \
curl -sL http://git.io/oneget.sh > oneget; \
chmod +x oneget; \
./oneget --debug get --extract --rename platform:linux.full.x64@$ONEC_VERSION; \
cd ./downloads/$TYPE/$ONEC_VERSION/server64.$ONEC_VERSION.tar.gz.extract; \
./setup-full-$ONEC_VERSION-x86_64.run --mode unattended --enable-components ws,server_admin,server --installer-language en; \
cd /tmp; \
rm -rf /tmp/onec
#end_oneget
EXPOSE 1540-1541 1545 1550 1560-1591
COPY ./configs /opt/1C/v8.3/x86_64/$ONEC_VERSION/conf
COPY ./scripts/srv1cv83 /etc/init.d/srv1cv83
COPY ./scripts/create_symlink.sh ./create_symlink.sh
COPY entrypoint.sh ./entrypoint.sh
RUN set -e \
&& chmod +x ./create_symlink.sh \
&& chmod +x ./entrypoint.sh \
&& ./create_symlink.sh $ONEC_VERSION
USER usr1cv8
RUN mkdir /home/usr1cv8/srvinfo
ENV ONEC_DATA=/home/usr1cv8/srvinfo
ENTRYPOINT [ "./entrypoint.sh" ]
CMD [ "-debug", "-http" ]