forked from Sitecore/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (19 loc) · 805 Bytes
/
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
ARG BASE_IMAGE
FROM $BASE_IMAGE as builder
RUN apt-get -y update \
&& apt-get -y --allow-unauthenticated install unzip \
&& wget -progress=bar:force -q -O sqlpackage.zip https://go.microsoft.com/fwlink/?linkid=2087431 \
&& unzip -qq sqlpackage.zip -d /opt/sqlpackage \
&& chmod +x /opt/sqlpackage/sqlpackage
COPY *.zip /opt/wdp/
RUN unzip -qq /opt/wdp/*.scwdp.zip -d /opt/wdp/
ENV DB_PREFIX='sc'
RUN mkdir -p /install \
&& chmod -R 700 /install \
&& cp /clean/* /install/ \
&& ( /opt/mssql/bin/sqlservr & ) | grep -q "Service Broker manager has started" \
&& ./opt/attach-databases.sh /install \
&& chmod +x /opt/install-databases.sh && ./opt/install-databases.sh /opt/wdp \
&& pkill sqlservr
FROM $BASE_IMAGE
COPY --from=builder ["/install/*", "/clean/"]