containers: fix ltex-ls Dockerfile

This commit is contained in:
Hoang Nguyen 2024-02-09 00:00:00 +07:00
parent ec15746219
commit a92193776d
Signed by: folliehiyuki
GPG Key ID: B0567C20730E9B11
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ RUN python3 -u tools/createCompletionLists.py
RUN mvn --quiet --errors package -DskipTests RUN mvn --quiet --errors package -DskipTests
# Package binary # Package binary
RUN tar -xzf target/ltex-ls-${LTEX_LS_VERSION}.tar.gz \ RUN tar -xzf target/ltex-ls-${LTEX_LS_VERSION}.tar.gz \
&& mv -v ltex-ls-${LTEX_LS_VERSION} /ltex-ls && mv -v ltex-ls-${LTEX_LS_VERSION} /ltex-ls-out
FROM docker.io/library/eclipse-temurin:11-jre-alpine FROM docker.io/library/eclipse-temurin:11-jre-alpine
# Add a normal user to run the program # Add a normal user to run the program
@ -21,6 +21,6 @@ RUN adduser -D -s /sbin/nologin -h /ltex-ls ltex
USER ltex USER ltex
# Copy artifacts from builder # Copy artifacts from builder
WORKDIR /ltex-ls WORKDIR /ltex-ls
COPY --from=builder /ltex-ls/ ./ COPY --from=builder /ltex-ls-out/ ./
# Entrypoint # Entrypoint
ENTRYPOINT ["/ltex-ls/bin/ltex-ls"] ENTRYPOINT ["/ltex-ls/bin/ltex-ls"]