mirror of
https://github.com/JustKato/drive-health.git
synced 2026-03-04 08:29:45 +02:00
Compare commits
5 Commits
feature/3-
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cf313cdaf3 | |||
|
|
28b319c3c5 | ||
|
|
30aa7f7bde | ||
|
|
4aaa187156 | ||
|
|
3ba65b93c0 |
16
Dockerfile
16
Dockerfile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user