Skip to content

Instantly share code, notes, and snippets.

@TWith2Sugars
Created January 5, 2021 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TWith2Sugars/c43ab7e65d4079e91e1ce04a5d96e7d5 to your computer and use it in GitHub Desktop.
Save TWith2Sugars/c43ab7e65d4079e91e1ce04a5d96e7d5 to your computer and use it in GitHub Desktop.
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: /
# 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