diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..3c3629e6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b3711d91 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:lts-alpine + +# Working directory +WORKDIR /app + +# Install dependencies +COPY . . +RUN npm install -g pnpm +RUN pnpm install + +RUN cd web +RUN pnpm build + +EXPOSE 11011 +CMD npx http-server -p 11011 ./dist diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..295d62e6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3.3" + +services: + tailchat-web: + build: + context: . + image: tailchat-web + environment: + SERVICE_URL: ${SERVICE_URL}