15 lines
436 B
Docker
15 lines
436 B
Docker
FROM node:lts-alpine AS builder
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN npm audit && npm i && npm run build
|
|
|
|
FROM alpine:3
|
|
COPY --from=builder /app/dist /app/dist
|
|
RUN apk add --no-cache python3 py3-pip py3-pyldap py3-pytoml \
|
|
&& pip3 install --break-system-packages python-dotenv Quart
|
|
COPY /server/app.py /server/settings.py /app/
|
|
|
|
WORKDIR /app
|
|
EXPOSE 5000
|
|
CMD ["/usr/bin/hypercorn", "-b", "0.0.0.0:5000", "--access-logfile", "-", "app:app"]
|