mirror of
https://github.com/miawinter98/just-short-it.git
synced 2024-11-22 08:19:54 +00:00
added: docker multi-platform support (buildx)
This commit is contained in:
parent
ddf964ee4c
commit
5eafecf30f
|
@ -1,12 +1,14 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [Unreleased]
|
## [1.2.0] - 2023-11-17
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
- Page Titles to Login, Logout and Urls Page
|
- Page Titles to Login, Logout and Urls Page
|
||||||
- Added Inspect Page, which displays information about a URL and allows to delete it
|
- 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 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
|
## Changed
|
||||||
|
|
||||||
|
|
|
@ -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.
|
#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
|
USER app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
EXPOSE 8080
|
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
|
ARG BUILD_CONFIGURATION=Release
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["JustShortIt.csproj", "."]
|
COPY ["JustShortIt.csproj", "."]
|
||||||
RUN dotnet restore "./././JustShortIt.csproj"
|
RUN dotnet restore "./././JustShortIt.csproj"
|
||||||
COPY . .
|
COPY . .
|
||||||
WORKDIR "/src/."
|
WORKDIR "/src/."
|
||||||
|
ARG TARGETPLATFORM
|
||||||
RUN dotnet build "./JustShortIt.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
RUN dotnet build "./JustShortIt.csproj" -c $BUILD_CONFIGURATION -o /app/build
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
|
|
Loading…
Reference in a new issue