Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Docker Option #206

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#Configuration
connections.toml

# Local python environment
pyvenv
*.DS_Store
Expand Down
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Use Miniconda3 as the base image
FROM --platform=linux/amd64 python:3.9.20-slim

RUN apt update
RUN apt install make wget curl -y

# Setup miniconda - seems to be a requirement
RUN mkdir -p ~/miniconda3
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
RUN bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
RUN rm ~/miniconda3/miniconda.sh

# Set the working directory in the container
WORKDIR /app

COPY environment.yml ./

# Copy the current directory contents into the container at /app
COPY . .

RUN make install-poetry
RUN make setup_admin_app

# Command allowing exploration of the container
# CMD [ "tail", "-f", "/dev/null" ]
# Run command to start your application, replace with actual command if different
CMD ["make", "run_admin_app"]
12 changes: 12 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
semantic-model-generator:
build:
context: .
ports:
- 8501:8501
networks:
- external_network

networks:
external_network:
driver: bridge