Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Skeleton Docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Mar 13, 2024
1 parent 1d300bb commit 2f12346
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build
WORKDIR /build

ENV DEBIAN_FRONTEND=noninteractive

COPY . .

# Build project...


ARG ASPNET_IMAGE_TAG
FROM mcr.microsoft.com/dotnet/aspnet:6.0.9-bullseye-slim AS final

COPY --from=build /app /app

WORKDIR /app
COPY ./script/web-docker-entrypoint.sh ./docker-entrypoint.sh
RUN chmod +x ./docker-entrypoint.sh
EXPOSE 80/tcp
7 changes: 7 additions & 0 deletions script/web-docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# exit on failures
set -e
set -o pipefail

exec "$@"

0 comments on commit 2f12346

Please sign in to comment.