summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-02-08 20:20:46 -0300
committerRoger Gonzalez <roger@rogs.me>2024-02-08 20:20:46 -0300
commitba262b5f3f8222e1cdec7f9dc1f53bffa92b924e (patch)
tree12c1b7694aa3d13277eca5168bb31dfa564f0f07
parent79c30510743d2f60cf2c90fa8daf8c590280c32a (diff)
Made the image smallerHEADmaster
-rw-r--r--.dockerignore5
-rw-r--r--Dockerfile9
-rw-r--r--content/index.org2
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
diff --git a/Dockerfile b/Dockerfile
index 84503f5..55e582a 100644
--- a/Dockerfile
+++ b/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