Compare commits

...

5 Commits

Author SHA1 Message Date
Daniel Legt cf313cdaf3
Merge pull request #4 from manjarisri/feature
Modified Dockerfile and reduced image size
2024-01-24 11:07:02 +02:00
Manjari Srivastav 28b319c3c5
Add files via upload
optimised Dockerfile
2024-01-24 12:29:59 +05:30
Manjari Srivastav 30aa7f7bde
Delete Dockerfile 2024-01-24 12:28:22 +05:30
Manjari Srivastav 4aaa187156
Delete drive-health directory 2024-01-24 12:27:49 +05:30
Manjari Srivastav 3ba65b93c0
Add files via upload 2024-01-24 12:22:35 +05:30
1 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# Build Stage
FROM debian:bullseye-slim
# === Build Stage ===
FROM debian:bullseye-slim AS builder
ENV IS_DOCKER TRUE
LABEL org.opencontainers.image.source https://github.com/JustKato/drive-health
@ -43,6 +43,18 @@ RUN apt-get purge -y gcc musl-dev libsqlite3-dev wget \
&& apt-get autoremove -y \
&& apt-get clean
# === Final Stage ===
FROM debian:bullseye-slim AS final
# Set the environment variable
ENV IS_DOCKER TRUE
# Create the directory and set it as the working directory
WORKDIR /app
# Copy only the necessary files from the builder stage
COPY --from=builder /app/drive-health .
# Expose the necessary port
EXPOSE 8080
@ -50,4 +62,4 @@ EXPOSE 8080
VOLUME [ "/data" ]
# Command to run the executable
CMD ["./drive-health"]
CMD ["./drive-health"]