-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile-deb
54 lines (41 loc) · 1.28 KB
/
Dockerfile-deb
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
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; \
rm -rf /var/lib/apt/lists/*
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:deb.server.x64@$ONEC_VERSION; \
cd ./downloads/$TYPE/$ONEC_VERSION/deb64.$ONEC_VERSION.tar.gz.extract; \
dpkg -i common-*.deb \
server-*.deb \
ws-*.deb; \
cd /tmp; \
rm -rf /tmp/onec
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" ]