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"] -