mirror of
https://github.com/farcasclaudiu/LanBackup.git
synced 2026-06-28 15:00:58 +03:00
Add project files.
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
FROM microsoft/dotnet:1.1.0-sdk-projectjson
|
||||
|
||||
RUN apt-get update
|
||||
RUN wget -qO- https://deb.nodesource.com/setup_4.x | bash -
|
||||
RUN apt-get install -y build-essential nodejs
|
||||
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
||||
WORKDIR /app/src/LanBackup.WebApp
|
||||
RUN ["dotnet", "restore"]
|
||||
|
||||
WORKDIR /app/src/LanBackup.DataCore
|
||||
RUN ["dotnet", "restore"]
|
||||
|
||||
WORKDIR /app/src/LanBackup.ModelsCore
|
||||
RUN ["dotnet", "restore"]
|
||||
|
||||
|
||||
|
||||
WORKDIR /app/src/LanBackup.WebApp
|
||||
RUN ["dotnet", "build"]
|
||||
|
||||
EXPOSE 5000/tcp
|
||||
|
||||
CMD ["dotnet", "run", "--server.urls", "http://*:5000"]
|
||||
Reference in New Issue
Block a user