forked from Sitecore/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (19 loc) · 933 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
# escape=`
ARG BASE_IMAGE
ARG ASSETS_IMAGE
FROM $ASSETS_IMAGE as assets
FROM $BASE_IMAGE
ARG ASSETS_USE_WDP
ENV ACCEPT_EULA='Y' `
sa_password='HASH-epsom-sunset-cost7!' `
INSTALL_PATH='C:\\install\\' `
INSTALL_MODULE_PATH='C:\\install-module\\' `
DATA_PATH='C:\\data\\' `
TEMP_PATH='c:\\temp'
RUN Remove-Item -Path 'C:\\install-module' -Force -Recurse;
COPY --from=assets ["${ASSETS_USE_WDP}", "${INSTALL_MODULE_PATH}"]
COPY . ${INSTALL_MODULE_PATH}
RUN & (Join-Path $env:INSTALL_MODULE_PATH "\\Extract-Databases.ps1") -Path $env:INSTALL_MODULE_PATH; `
& (Join-Path $env:INSTALL_MODULE_PATH "\\Install-Databases.ps1") -InstallPath $env:INSTALL_PATH -DataPath $env:DATA_PATH -ModulePath $env:INSTALL_MODULE_PATH -DatabasePrefix Sitecore; `
Get-ChildItem -Path $env:INSTALL_PATH -Exclude "*.mdf", "*.ldf" | Remove-Item -Force; `
Get-ChildItem -Path $env:INSTALL_MODULE_PATH | Remove-Item -Force;