diff --git a/Dockerfile b/Dockerfile index 15c4832..22f3387 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,10 @@ COPY src/ . RUN CGO_ENABLED=0 go build -o /app FROM scratch -COPY --from=build /app /app -COPY static/ /static/ -COPY html/ /html/ +COPY --from=build /app . +COPY html/ html/ +COPY css/ css/ +COPY static/ static/ +COPY tmpl/ tmpl/ EXPOSE 3000 -CMD ["/app"] +CMD ["./app"] diff --git a/compose.yaml b/compose.yaml index 001d041..2660b08 100644 --- a/compose.yaml +++ b/compose.yaml @@ -8,9 +8,15 @@ services: watch: - action: rebuild path: src/ + - action: sync+restart + path: tmpl/ + target: tmpl/ - action: sync+restart path: html/ - target: html + target: html/ + - action: sync + path: css/ + target: css/ - action: sync path: static/ - target: static + target: static/ diff --git a/css/resume.css b/css/resume.css new file mode 100644 index 0000000..a987a76 --- /dev/null +++ b/css/resume.css @@ -0,0 +1,11 @@ +@media print { + @page { + size: A4; + size: portrait; + margin: 5mm; + } + + #menu, #credits { + display: none; + } +} diff --git a/html/style.css b/css/style.css similarity index 100% rename from html/style.css rename to css/style.css diff --git a/html/about.html b/html/about.html deleted file mode 100644 index 1af3590..0000000 --- a/html/about.html +++ /dev/null @@ -1,33 +0,0 @@ - - -
- -