mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-21 07:22:53 +08:00
23 lines
643 B
Text
23 lines
643 B
Text
FROM node:18.16.0-alpine AS webapp
|
|
RUN apk update && apk add bash
|
|
RUN npm i -g pnpm
|
|
RUN mkdir -p /app
|
|
WORKDIR /app
|
|
COPY ./package.json /app
|
|
COPY ./pnpm-lock.yaml /app
|
|
RUN pnpm install
|
|
COPY ./webapp /app/webapp
|
|
COPY ./index.html /app
|
|
COPY ./public /app/public
|
|
COPY ./*.js /app
|
|
COPY ./*.json /app
|
|
|
|
FROM tiangolo/uvicorn-gunicorn:python3.11 AS webapi
|
|
LABEL maintainer="Sebastian Ramirez <tiangolo@gmail.com>"
|
|
RUN apt-get update && apt-get install -y git libpq-dev gcc
|
|
COPY ./requirements.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir --upgrade -r /tmp/requirements.txt
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN pip install -e .
|
|
ENV PYTHONPATH=/app
|