Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
027cb62ebc | |||
f4bcdf3c0e | |||
9e6a5dd55a | |||
391298f4e3 | |||
df3ed72821 | |||
6cff82233e |
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM golang:1.21
|
||||||
|
WORKDIR /app
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
|
# TODO: this can be improved to be dynamically loaded
|
||||||
|
# Also, Dockerfile COPY seems horrible for copying multiple folders. Why?
|
||||||
|
COPY css ./css
|
||||||
|
COPY images ./images
|
||||||
|
COPY templates ./templates
|
||||||
|
COPY posts ./posts
|
||||||
|
|
||||||
|
COPY *.go ./
|
||||||
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /takunomi-blog
|
||||||
|
CMD ["/takunomi-blog", "ext"]
|
Loading…
Reference in New Issue
Block a user