mirror of
https://github.com/fastogt/fastocloud.git
synced 2025-03-09 23:18:50 +00:00
Init FastoCloud on Github
This commit is contained in:
parent
d0d234101d
commit
d0d6551903
359 changed files with 32676 additions and 23 deletions
34
Dockerfile
Normal file
34
Dockerfile
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
FROM debian:bullseye-slim
|
||||
|
||||
LABEL maintainer="Alexandr Topilski <support@fastogt.com>"
|
||||
|
||||
ENV USER fastocloud
|
||||
ENV APP_NAME fastocloud
|
||||
ENV PROJECT_DIR /usr/src/fastocloud
|
||||
RUN useradd -m -U -d /home/$USER $USER -s /bin/bash
|
||||
|
||||
COPY . $PROJECT_DIR
|
||||
|
||||
RUN set -ex; \
|
||||
BUILD_DEPS='ca-certificates git python3 python3-pip nano dbus'; \
|
||||
PREFIX=/usr/local; \
|
||||
apt-get update; \
|
||||
apt-get install -y $BUILD_DEPS --no-install-recommends; \
|
||||
# rm -rf /var/lib/apt/lists/*; \
|
||||
pip3 install setuptools; \
|
||||
PYFASTOGT_DIR=/usr/src/pyfastogt; \
|
||||
mkdir -p $PYFASTOGT_DIR && git clone https://gitlab.com/fastogt/pyfastogt $PYFASTOGT_DIR && cd $PYFASTOGT_DIR && python3 setup.py install; \
|
||||
cd $PROJECT_DIR/build && ./env/build_env.py --prefix=$PREFIX --docker; \
|
||||
cd $PROJECT_DIR/build && PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig python3 build.py release $PREFIX; \
|
||||
rm -rf $PYFASTOGT_DIR $PROJECT_DIR # && apt-get purge -y --auto-remove $BUILD_DEPS
|
||||
|
||||
RUN mkdir /var/run/$APP_NAME
|
||||
RUN chown $USER:$USER /var/run/$APP_NAME
|
||||
VOLUME /var/run/$APP_NAME
|
||||
|
||||
USER $USER
|
||||
WORKDIR /home/$USER
|
||||
|
||||
ENTRYPOINT ["fastocloud"]
|
||||
|
||||
EXPOSE 6317 8000 7000 6000
|
||||
Loading…
Add table
Add a link
Reference in a new issue