forked from CDCgov/dibbs-ecr-refiner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.app
More file actions
34 lines (22 loc) · 674 Bytes
/
Dockerfile.app
File metadata and controls
34 lines (22 loc) · 674 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Build client
FROM node:20-alpine3.20 AS client-builder
WORKDIR /src
COPY ./client/package*.json ./
RUN npm install
COPY ./client ./
RUN npm run build
# Package production app
FROM python:3.13-slim
RUN apt-get update && \
apt-get upgrade -y
RUN pip install --upgrade pip --break-system-packages
WORKDIR /code
COPY ./refiner/requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt
COPY ./refiner/app /code/app
COPY ./refiner/assets /code/assets
COPY ./refiner/README.md /code/README.md
COPY --from=client-builder /src/dist /code/dist
ENV PRODUCTION=true
EXPOSE 8080
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]