forked from Sitecore/docker-images
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (28 loc) · 995 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# escape=`
ARG BASE_IMAGE
ARG ASSETS_IMAGE
FROM $ASSETS_IMAGE as assets
FROM ${BASE_IMAGE} as build
ARG ASSETS_USE_PS_WDP
ARG CONN_STRING_CORE
ARG CONN_STRING_MASTER
ARG CONN_STRING_WEB
SHELL ["powershell", "-NoProfile", "-Command", "$ErrorActionPreference = 'Stop';"]
WORKDIR /app/
# Copy Publishing Service files
COPY --from=assets ["${ASSETS_USE_PS_WDP}", "/packages/"]
# Copy PS scripts
COPY scripts/ .
# expand selected wdp into installation directory
RUN Expand-Archive -Path $env:ASSETS_USE_PS_WDP -DestinationPath "/app"
FROM ${BASE_IMAGE} as final
WORKDIR /app/
COPY --from=build /app .
#Configure web servers to bind to port 80 when present
ENV ASPNETCORE_URLS=http://+:80 `
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true `
# Deprecated, use `DOTNET_RUNNING_IN_CONTAINER` instead - https://github.com/dotnet/dotnet-docker/issues/677
DOTNET_RUNNING_IN_CONTAINERS=true
EXPOSE 80
ENTRYPOINT [ "powershell", "/app/start.ps1" ]