From: Lukas Krickl Date: Mon, 8 Nov 2021 05:31:57 +0000 (+0100) Subject: Added dockerfile X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=7555572c7e0422992721a89818683a5fa66b543b;p=website%2F.git Added dockerfile --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e215c60 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/package.json b/package.json index 1dce7da..373e792 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pages/about.vue b/pages/about.vue index 2dc5fd0..af91a7e 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -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!