-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathflowmachine.Dockerfile
29 lines (27 loc) · 1.26 KB
/
flowmachine.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
29
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM python:3.12-bullseye@sha256:8a0a0b029be52d01c57e91037658a47fc46e37abd2994546ab0738a7590cf70c
ARG SOURCE_VERSION=0+unknown
ENV SOURCE_VERSION=${SOURCE_VERSION}
ENV SOURCE_TREE=FlowKit-${SOURCE_VERSION}
WORKDIR /${SOURCE_TREE}/flowmachine
COPY ./flowmachine/Pipfile* ./
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
pip install --no-cache-dir pipenv && pipenv install --clear --deploy && \
apt-get -y remove git && \
apt purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/*
COPY . /${SOURCE_TREE}/
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
pipenv run pip install --no-deps --no-cache-dir . && \
apt-get -y remove git && \
apt purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/*
CMD ["pipenv", "run", "flowmachine"]
# FlowDB has a default role named flowmachine for use with the flowmachine server
# when starting the container with a different user, that user must be in the flowmachine
# role
ENV FLOWMACHINE_FLOWDB_USER=flowmachine