From 5e79f514d49228b7cdced485cae9ad3cdb4ae7ad Mon Sep 17 00:00:00 2001 From: Tomer Leibovitch Date: Wed, 12 Jun 2024 15:57:26 +0000 Subject: [PATCH] added generic Dockerfile and .dockerignore --- .dockerignore | 3 +++ Dockerfile | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..cd58b0b80 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git* +yarn.lock +.vscode/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..6cfe6c4d4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM betterweb/hugo + +WORKDIR /app + +RUN npm install yarn + +COPY . . + +RUN yarn install + +CMD ["-p", "8080", "--bind", "0.0.0.0"] + +ENTRYPOINT ["hugo", "serve"]