Skip to content
Permalink
Browse files

updated docker file

  • Loading branch information...
p3root committed Feb 25, 2019
1 parent 66f16c9 commit 3f0f03dbebc333d60b56b8b5ab5a3a819c42fc44
Showing with 5 additions and 3 deletions.
  1. +5 −3 docker/automatica/Dockerfile
@@ -25,6 +25,7 @@ RUN apt-get update && \
ARG AUTOMATICA_VERSION
ARG CLOUD_API_KEY
ARG CLOUD_URL
ARG FONTAWESOME_TOKEN


#install automatica-cli
@@ -47,16 +48,17 @@ COPY ./src/automatica.core/Automatica.Core/appsettings.json .

RUN echo $AUTOMATICA_VERSION

#RUN chmod 755 /src/docker/automatica/build-packages.sh
#RUN /src/docker/automatica/build-packages.sh /src $version

RUN automatica-cli InstallLatestPlugins -I /app/automatica -M $AUTOMATICA_VERSION -A $CLOUD_API_KEY -C $CLOUD_URL

RUN dotnet publish -c Release -o /tmp/db/ /src/src/automatica.core/CI/Automatica.Core.CI.CreateDatabase
COPY ./src/automatica.core/Automatica.Core/appsettings.json /tmp/db/appsettings.json

RUN dotnet /tmp/db/Automatica.Core.CI.CreateDatabase.dll /app/automatica

RUN npm config set "@fortawesome:registry" https://npm.fontawesome.com/ /src/src/automatica.core/Automatica.WebNew
RUN npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_TOKEN /src/src/automatica.core/Automatica.WebNew

RUN npm install /src/src/automatica.core/Automatica.WebNew
RUN npm build /src/src/automatica.core/Automatica.WebNew
RUN cp -avr /src/src/automatica.core/Automatica.Core/wwwroot /app/automatica/wwwroot

0 comments on commit 3f0f03d

Please sign in to comment.
You can’t perform that action at this time.