1
0
Fork 0
mirror of https://github.com/miawinter98/just-short-it.git synced 2024-11-25 01:19:53 +00:00

added: docker multi-platform support (buildx)

This commit is contained in:
Mia Rose Winter 2023-11-17 23:23:44 +01:00
parent ddf964ee4c
commit 5eafecf30f
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 7 additions and 3 deletions

View file

@ -1,12 +1,14 @@
# Changelog
## [Unreleased]
## [1.2.0] - 2023-11-17
### Added
- Page Titles to Login, Logout and Urls Page
- Added Inspect Page, which displays information about a URL and allows to delete it
- Added Inspect Form group to Urls that redirects to Inspect Page
- Added Docker-Multiplatform support (future images will contain linux/amd64 and linux/arm64 images)
- Added alpine images
## Changed

View file

@ -1,17 +1,19 @@
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
ARG BASE=8.0
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:$BASE AS base
USER app
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["JustShortIt.csproj", "."]
RUN dotnet restore "./././JustShortIt.csproj"
COPY . .
WORKDIR "/src/."
ARG TARGETPLATFORM
RUN dotnet build "./JustShortIt.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish