Added dockerfile
authorLukas Krickl <lukas@krickl.dev>
Mon, 8 Nov 2021 05:31:57 +0000 (06:31 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 8 Nov 2021 05:31:57 +0000 (06:31 +0100)
Dockerfile [new file with mode: 0644]
package.json
pages/about.vue

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..e215c60
--- /dev/null
@@ -0,0 +1,19 @@
+FROM node:17-bullseye
+
+# setup
+RUN mkdir -p /usr/src/website
+WORKDIR /usr/src/website
+
+RUN apt update && apt upgrade
+RUN apt install git
+
+COPY . /usr/src/website
+RUN npm install
+RUN npm run build
+
+EXPOSE 3000
+
+ENV NUXT_HOST=0.0.0.0
+ENV NUXT_PORT=3000
+
+CMD ["npm", "start"]
index 1dce7da7b60125fee5c1940e872fd80182939ace..373e792180039dd4028fddbaa05e89dbacac57ff 100644 (file)
@@ -7,7 +7,9 @@
     "start": "nuxt start",
     "lint": "eslint . --ignore-path .gitignore --ext .vue,.js",
     "lint:fix": "yarn lint --fix",
-    "test": "jest"
+    "test": "jest",
+    "docker": "docker build -t website .",
+    "docker:run": "docker run -it -p 3000:3000 website"
   },
   "dependencies": {
     "nuxt": "^2.15.8",
index 2dc5fd03b00580c9b367ec828abd7a9960f3057e..af91a7e660fc87c7a9618e10f8cbb410192ec1ea 100644 (file)
@@ -3,7 +3,7 @@
         My name is Lukas and I love making simple tools.
         My software usually just exists to make my daily workflow easier,
         therefore you will find a lot of little single-use tools on my GitHub.
-        I alos love ROM-hacking.
+        I also love ROM-hacking.
         Contributions are always welcome! I hope you find some of my tools useful!
     </article>
 </template>