summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-08 15:17:57 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-08 15:17:57 +0000
commit145b0e74247a161c4c22e1aa0c5568604a3a83b6 (patch)
tree576d9efd92bd1a138459e001fa9649e7e3bc45d5 /Dockerfile
parent3dad97d316007f345800062d518661846d0b6571 (diff)
Moved main to cmd/web and added routes() method
Started to separate out funtionality: added an application struct and several methods (routes(), home() and a notFound() error). At the moment, the application struct does not carry any other configuration objects or a database pool connection - it is just there to get the routing going.
Diffstat (limited to '')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 50ed167..5196531 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,6 +3,6 @@ WORKDIR /app
COPY go.mod ./
RUN go mod download && go mod verify
COPY . .
-RUN go build -v -o /usr/local/bin/app .
+RUN go build -v -o /usr/local/bin/app ./cmd/web
CMD ["app"]
EXPOSE 4000