From 3b110fc3a4eae6ac768d0fe118f45fd9af405425 Mon Sep 17 00:00:00 2001 From: Araozu Date: Sun, 6 Oct 2024 21:36:59 -0500 Subject: [PATCH] fix: jenkins, pt 4 --- Dockerfile | 17 +++++++++++++++++ docker/docker-compose.yml => docker-compose.yml | 0 docker/Dockerfile | 8 -------- 3 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 Dockerfile rename docker/docker-compose.yml => docker-compose.yml (100%) delete mode 100644 docker/Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e6796a8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Start with an Alpine base image +FROM alpine:latest + +# Create a directory for our application +WORKDIR /app + +# Copy the binary, public directory, and .env file +COPY main /app/main +COPY public /app/public +COPY .env /app/.env + +# Ensure the main binary is executable +RUN chmod +x /app/main + +# Set the command to run the main binary +CMD ["/app/main"] + diff --git a/docker/docker-compose.yml b/docker-compose.yml similarity index 100% rename from docker/docker-compose.yml rename to docker-compose.yml diff --git a/docker/Dockerfile b/docker/Dockerfile deleted file mode 100644 index 70baeb5..0000000 --- a/docker/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM alpine:3 - -COPY ../main . -COPY ../public . -COPY ../.env . - -CMD ["main"] -