diff options
author | Roger Gonzalez <roger@rogs.me> | 2024-02-08 20:20:46 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2024-02-08 20:20:46 -0300 |
commit | ba262b5f3f8222e1cdec7f9dc1f53bffa92b924e (patch) | |
tree | 12c1b7694aa3d13277eca5168bb31dfa564f0f07 | |
parent | 79c30510743d2f60cf2c90fa8daf8c590280c32a (diff) |
-rw-r--r-- | .dockerignore | 5 | ||||
-rw-r--r-- | Dockerfile | 9 | ||||
-rw-r--r-- | content/index.org | 2 |
3 files changed, 11 insertions, 5 deletions
diff --git a/.dockerignore b/.dockerignore index 550b510..4a84801 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,8 @@ ./public ./.packages ./.git +LICENSE +README.org +build.sh +deploy.sh +Dockerfile @@ -1,17 +1,18 @@ FROM nginx:alpine + LABEL maintainer="Roger Gonzalez <roger@rogs.me>" WORKDIR /app + COPY . . -RUN rm /usr/share/nginx/html/* && \ +RUN rm -rf /usr/share/nginx/html/* && \ apk add --no-cache emacs git && \ emacs -Q --script build-site.el && \ - cp -R ./public/* /usr/share/nginx/html && \ + cp -R ./public/* /usr/share/nginx/html/ && \ apk del emacs git && \ - rm -rf ./packages + rm -rf * /var/cache/apk/* EXPOSE 80 -# Start Nginx and keep it running in the foreground CMD ["nginx", "-g", "daemon off;"] diff --git a/content/index.org b/content/index.org index 5590252..fde11e6 100644 --- a/content/index.org +++ b/content/index.org @@ -20,4 +20,4 @@ This is a new section, very different to the first one :ID: 9e868a50-8471-4836-929b-d8708c661185 :END: -wow +wow lmao |