-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (19 loc) · 1.35 KB
/
Dockerfile
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
FROM python:3.9-alpine as base
FROM base as builder
RUN mkdir /install
RUN apk update && apk add --no-cache --virtual .build-deps \
postgresql-dev \
g++ \
musl-dev
WORKDIR /install
COPY ./openhcs/requirements.txt /requirements.txt
RUN pip install --prefix=/install -r /requirements.txt
RUN apk del --no-cache .build-deps
FROM base
COPY --from=builder /install /usr/local
RUN apk --no-cache add libpq
RUN mkdir /usr/src/openhcs /usr/src/openhcs/.logs
WORKDIR /usr/src/openhcs
COPY ./openhcs/ .
EXPOSE 80 443 8080
CMD [ "python", "server.py" ]