containers: update .Net to 8.0 for marksman

Also switch ltex-ls container to use Git based approach.
This commit is contained in:
Hoang Nguyen 2024-01-20 00:00:00 +07:00
parent b00ae691c4
commit 01cf930d09
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
3 changed files with 14 additions and 13 deletions

View File

@ -1,13 +1,12 @@
FROM docker.io/library/maven:3-eclipse-temurin-11-alpine AS builder
ARG LTEX_LS_VERSION
# Install build dependencies
RUN apk add --no-cache python3
# Download the release
RUN wget -q https://github.com/valentjn/ltex-ls/archive/refs/tags/${LTEX_LS_VERSION}.tar.gz \
&& tar -xzf ${LTEX_LS_VERSION}.tar.gz \
&& rm -vf ${LTEX_LS_VERSION}.tar.gz \
&& mv -v ltex-ls-${LTEX_LS_VERSION} ltex-ls-src
WORKDIR /ltex-ls-src
RUN apk add --no-cache python3 git
# Checkout the versioned git tag
RUN git clone --depth 1 --single-branch https://github.com/valentjn/ltex-ls.git /ltex-ls
WORKDIR /ltex-ls
ARG LTEX_LS_VERSION
RUN git fetch origin tag "${LTEX_LS_VERSION}" \
&& git switch --detach "${LTEX_LS_VERSION}"
# Generate completion lists
RUN python3 -u tools/createCompletionLists.py
# Build

View File

@ -1,15 +1,17 @@
FROM docker.io/bitnami/dotnet-sdk:7-debian-11 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
RUN git clone https://github.com/artempyanykh/marksman.git /app
RUN git clone --depth 1 --single-branch https://github.com/artempyanykh/marksman.git /app
WORKDIR /app
ARG MARKSMAN_VERSION
RUN git fetch --all \
RUN git fetch origin tag "${MARKSMAN_VERSION}" \
&& git switch --detach "${MARKSMAN_VERSION}" \
&& sed -e 's/--dirty/--tag/g' -i Marksman/Marksman.fsproj
RUN dotnet restore
RUN dotnet publish -c Release -o out Marksman/Marksman.fsproj
FROM mcr.microsoft.com/dotnet/aspnet:7.0
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
RUN adduser -D -s /sbin/nologin -h /app marksman
USER marksman
WORKDIR /app
COPY --from=build-env /app/out .
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1

View File

@ -3,7 +3,7 @@ wallpaper_dir: '{{ ansible_user_dir }}/Pictures/Wallpapers'
# Fonts that are not covered by system packages
font_versions:
iosevka: 28.0.3
iosevka: 28.0.5
sarasa-gothic: 1.0.3
kvantum_themes: