-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
35 lines (26 loc) · 945 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
FROM node:14.17.3
FROM mcr.microsoft.com/dotnet/core/sdk:2.2
LABEL maintainer=""
COPY --from=node /usr/bin/test /usr/bin/test
ARG PackageName
ARG PackageVersion
ARG NexusUser
ARG NexusPassword
ENV ASPNETCORE_ENVIRONMENT=Development
RUN apt update -y \
&& apt install -y jq unzip curl
COPY . /app
WORKDIR /app/demo-core
RUN apt install curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y npm
RUN npm install -g bower
RUN bower --allow-root install
RUN wget --no-check-certificate --user ${NexusUser} --password ${NexusPassword} https://nexus.tools.froala-infra.com/repository/Froala-npm/${PackageName}/-/${PackageName}-${PackageVersion}.tgz
RUN tar -xvf ${PackageName}-${PackageVersion}.tgz
RUN rm -rf wwwroot/lib/froala-wysiwyg-editor
RUN mv package/ wwwroot/lib/froala-wysiwyg-editor
RUN rm -rf ${PackageName}-${PackageVersion}.tgz
EXPOSE 5002
CMD ["dotnet","run"]