mirror of
https://github.com/fastogt/fastocloud.git
synced 2025-03-09 23:18:50 +00:00
Docker review
This commit is contained in:
parent
8cbd146565
commit
6c5fc368be
4 changed files with 52 additions and 4 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -4,7 +4,7 @@ LABEL maintainer="Alexandr Topilski <support@fastogt.com>"
|
|||
|
||||
ENV USER fastocloud
|
||||
ENV APP_NAME fastocloud
|
||||
ENV PROJECT_DIR /usr/src/fastocloud
|
||||
ENV PROJECT_DIR /usr/src/$APP_NAME
|
||||
RUN useradd -m -U -d /home/$USER $USER -s /bin/bash
|
||||
|
||||
COPY . $PROJECT_DIR
|
||||
|
|
@ -22,13 +22,18 @@ RUN set -ex; \
|
|||
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
|
||||
|
||||
COPY docker/$APP_NAME.conf /etc/
|
||||
RUN mkdir /var/run/$APP_NAME
|
||||
RUN chown $USER:$USER /var/run/$APP_NAME
|
||||
VOLUME /var/run/$APP_NAME
|
||||
RUN chown $USER:$USER /var/lib/dbus/ # for unique machine-id
|
||||
#VOLUME /var/run/$APP_NAME
|
||||
|
||||
COPY docker/docker-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
USER $USER
|
||||
WORKDIR /home/$USER
|
||||
|
||||
ENTRYPOINT ["fastocloud"]
|
||||
ENTRYPOINT ["docker-entrypoint.sh"]
|
||||
|
||||
EXPOSE 6317 8000 7000 6000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue