Deploy Full stack docker image (#914)

This commit is contained in:
Sidharth Mohanty
2023-11-08 23:55:12 +05:30
committed by GitHub
parent 6864b4207b
commit 936c7e389f
4 changed files with 39 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.11 AS backend
FROM python:3.11-slim AS backend
WORKDIR /usr/src/app/backend
COPY requirements.txt .

View File

@@ -2,20 +2,22 @@ version: "3.9"
services:
backend:
container_name: embedchain_backend
container_name: embedchain-backend
restart: unless-stopped
build:
context: backend
dockerfile: Dockerfile
image: embedchain/backend
ports:
- "8000:8000"
frontend:
container_name: embedchain_frontend
container_name: embedchain-frontend
restart: unless-stopped
build:
context: frontend
dockerfile: Dockerfile
image: embedchain/frontend
ports:
- "3000:3000"
depends_on:

View File

@@ -1,4 +1,4 @@
FROM node:18 AS frontend
FROM node:18-slim AS frontend
WORKDIR /usr/src/app/frontend
COPY package.json .