forked from Ed-Fi-Alliance-OSS/Ed-Fi-DataImport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (29 loc) · 1.75 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
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
#tag 6.0-alpine
FROM mcr.microsoft.com/dotnet/aspnet@sha256:201cedd60cb295b2ebea7184561a45c5c0ee337e37300ea0f25cff5a2c762538
LABEL maintainer="Ed-Fi Alliance, LLC and Contributors <[email protected]>"
ENV VERSION="2.2.0"
ENV TZ=${TIME_ZONE}
# Alpine image does not contain Globalization Cultures library so we need to install ICU library to get fopr LINQ expression to work
# Disable the globaliztion invariant mode (set in base image)
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
WORKDIR /app
RUN apk --no-cache add unzip=~6 dos2unix=~7 bash=~5 gettext=~0 postgresql13-client=~13 jq=~1 icu=~72 gcompat tzdata && \
wget -O /app/DataImport.zip https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_apis/packaging/feeds/EdFi/nuget/packages/DataImport.Web/versions/${VERSION}/content && \
unzip /app/DataImport.zip -d /app/DataImport && \
cp -r /app/DataImport/DataImport.Web/. /app/DataImport.Web && \
cp -r /app/DataImport/DataImport.Server.TransformLoad/. /app/DataImport.Server.TransformLoad && \
chmod 755 /app/DataImport.Server.TransformLoad/DataImport.Server.TransformLoad -- ** && \
rm -r /app/DataImport && \
rm -f /app/DataImport.zip
COPY Compose/pgsql/run.sh /app/DataImport.Web/run.sh
RUN dos2unix /app/DataImport.Web/*.json && \
dos2unix /app/DataImport.Web/*.sh && \
dos2unix /app/DataImport.Server.TransformLoad/*.json && \
chmod 700 /app/DataImport.Web/*.sh -- **
EXPOSE 80
WORKDIR /app/DataImport.Web
ENTRYPOINT [ "/app/DataImport.Web/run.sh" ]