try static linking / correct path for Application

This commit is contained in:
Thomas Schleicher 2024-10-22 20:08:02 +02:00
parent 93d02a2cb0
commit 75fca0369c
3 changed files with 5 additions and 4 deletions

View file

@ -1,11 +1,9 @@
FROM ubuntu:20.04
ENV BUILD_DIR="build"
ENV APPLICATION_BINARY="Application"
ENV OPEN_PORT=8080
WORKDIR /app
COPY ${BUILD_DIR}/${APPLICATION_BINARY} .
COPY ${APPLICATION_BINARY} .
EXPOSE ${OPEN_PORT}
CMD [ "./${APPLICATION_BINARY}" ]