Created
January 5, 2021 08:35
-
-
Save TWith2Sugars/c43ab7e65d4079e91e1ce04a5d96e7d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static_sites: | |
- catchall_document: index.html | |
dockerfile_path: Dockerfile.client | |
github: | |
branch: main | |
deploy_on_push: true | |
repo: | |
name: birdshed-app | |
output_dir: /app/deploy/public/ | |
routes: | |
- path: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://hub.docker.com/_/microsoft-dotnet-core | |
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build | |
WORKDIR /app | |
# copy everything | |
COPY . . | |
RUN dotnet tool restore | |
RUN dotnet restore | |
RUN dotnet fable src/Client | |
FROM node:12 AS client | |
WORKDIR /app | |
COPY --from=build /app ./ | |
RUN npm install | |
RUN npm run build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment