mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-23 00:12:54 +08:00
22 lines
640 B
Text
22 lines
640 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 ./felicity /app/felicity
|
|
ENV PYTHONPATH=/app
|