You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
667 B

FROM benediktkr/poetry:latest
MAINTAINER Benedikt Kristinsson <>
RUN useradd -u 1211 -ms /bin/bash zflux
# RUN mkdir /zflux
# COPY zflux/ /zflux/zflux/
# COPY tests/ /zlux/tests/
# COPY pyproject.toml /zflux/pyproject.toml
# COPY poetry.lock /zflux/poetry.lock
#RUN pip install /zflux
# idea is to override with bind mounts
# since doesnt do env vars as-is
COPY --from=build-zflux /usr/local/lib/python3.8/site-packages/ /usr/local/lib/python3.8/site-packages/
COPY pyproject.toml poetry.lock /app/
COPY zflux/ /app/zflux/
RUN poetry install --no-dev
ENV ZFLUX_CONF "/etc/zflux.yml"
USER 1211
CMD ["zflux"]