Skip to content

Commit

Permalink
add new dockerfiles and locations
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed Mar 25, 2024
1 parent e7d4fc8 commit 3cf576f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
12 changes: 12 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM mambaorg/micromamba

COPY environment.yaml* /tmp/conda-tmp/

ARG MAMBA_DOCKERFILE_ACTIVATE=1

RUN micromamba install -f /tmp/conda-tmp/environment.yaml && \
micromamba clean --all --yes

WORKDIR /app/
ADD ./app /app/
RUN pip install -e .
5 changes: 5 additions & 0 deletions database/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM postgres:16.2

RUN apt update && \
apt install -y --no-install-recommends postgresql-16-rdkit && \
rm -rf /var/lib/apt/lists/*
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ services:
descriptor_database:
image: 'rdkit-postgres:latest'
container_name: descriptor_database
build:
context: ./database
dockerfile: Dockerfile
shm_size: '4gb'
environment:
POSTGRES_SERVER: database
Expand All @@ -51,7 +54,7 @@ services:
container_name: kraken_backend
build:
context: ./backend
dockerfile: backend.dockerfile
dockerfile: Dockerfile
volumes:
- "./backend/app:/app"
environment:
Expand Down
12 changes: 12 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:alpine as react-build

WORKDIR /app/

COPY ./frontend/package.json ./frontend/yarn.lock /app/

RUN yarn install

COPY ./frontend /app/

RUN npm run build && \
npm cache clean --force

0 comments on commit 3cf576f

Please sign in to comment.