From fe22956d5dbdeb2b80a9e56b46abe2be9f2bfcdb Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Tue, 26 Mar 2024 16:00:05 -0600 Subject: initial commit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 728ff30..d7d12cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ WORKDIR /app COPY go.mod go.sum ./ RUN go mod download -COPY *.go ./ +COPY . . RUN go build -o /app/hatecomputers EXPOSE 8080 -CMD ["/app/hatecomputers", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static"] +CMD ["/app/hatecomputers", "--server", "--migrate", "--port", "8080", "--template-path", "/app/templates", "--database-path", "/app/db/hatecomputers.db", "--static-path", "/app/static"] -- cgit v1.2.3-70-g09d2