From 53b37a1cfbb34869c592501772d7776086e770ac Mon Sep 17 00:00:00 2001 From: Alex <49969959+alexzhang1030@users.noreply.github.com> Date: Tue, 17 Jan 2023 21:04:53 +0800 Subject: [PATCH] feat: add docker-compose support (#1257) --- Dockerfile | 4 ++-- docker-compose.yaml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile index 3ef206c0..f45aaf26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ WORKDIR /elk FROM base AS builder -# Prepare pnpm ( refer to https://pnpm.io/installation#on-alpine-linux ) -RUN wget -qO /bin/pnpm "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" && chmod +x /bin/pnpm +# Prepare pnpm https://pnpm.io/installation#using-corepack +RUN corepack enable # Prepare deps RUN apk update diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 00000000..9430a8dd --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,7 @@ +services: + elk: + build: + context: . + dockerfile: Dockerfile + ports: + - 5314:5314