Skip to content
Permalink
Browse files

Added GUI build to Dockerfile

  • Loading branch information...
dukeofharen committed May 8, 2019
1 parent 3e33d2b commit 0f15a46528ccc1ede36c90ff5dfbcd55894d2426
Showing with 11 additions and 1 deletion.
  1. +2 −1 .dockerignore
  2. +9 −0 Dockerfile
@@ -1,2 +1,3 @@
bin\
obj\
obj\
node_modules\
@@ -1,11 +1,20 @@
# Build API
FROM microsoft/dotnet:sdk AS build-env
WORKDIR /app

COPY . ./
RUN cd src/HttPlaceholder && dotnet publish -c Release -o ../../out

# Build UI
FROM node AS gui-build-env
WORKDIR /app

COPY . ./
RUN cd gui && npm install && npm run build

# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY --from=build-env /app/out .
COPY --from=gui-build-env /app/gui/dist ./gui
ENTRYPOINT ["dotnet", "HttPlaceholder.dll", "--fileStorageLocation", "/app/stubs"]

0 comments on commit 0f15a46

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