fiveserver icon indicating copy to clipboard operation
fiveserver copied to clipboard

docker build error

Open loa123 opened this issue 1 year ago • 2 comments

ERROR [ 6/18] RUN cd /opt/fiveserver && make FSENV=/opt/fiveserver/fsenv install bug report

loa123 avatar May 31 '24 04:05 loa123

Here is fixed Docker File


FROM ubuntu:focal
ENV DEBIAN_FRONTEND noninteractive

RUN groupadd -g 3066 five && useradd -r -u 3066 -g five five

RUN apt-get update && apt-get install -y \
  libmysqlclient-dev \
  python3 python3-venv python3-dev \
  gcc \
  make \
  pkg-config \
  libssl-dev \
  build-essential \
  libffi-dev

ENV FSROOT /opt/fiveserver
ENV FSENV /opt/fiveserver/fsenv
ENV SVC fiveserver

# Prepare the virtual environment and upgrade tools
RUN mkdir -p $FSROOT
COPY pip.requirements Makefile $FSROOT/
RUN python3 -m venv $FSENV && \
    $FSENV/bin/pip install --upgrade pip setuptools wheel && \
    $FSENV/bin/pip install -r $FSROOT/pip.requirements

COPY etc $FSROOT/etc
COPY lib $FSROOT/lib
COPY log $FSROOT/log
COPY sql $FSROOT/sql
COPY tac $FSROOT/tac
COPY web $FSROOT/web
COPY web6 $FSROOT/web6
COPY docker $FSROOT/docker
COPY service.sh $FSROOT/

RUN chown -R five:five $FSROOT/log
RUN chown -R five:five $FSROOT/etc/data

USER five
WORKDIR $FSROOT
CMD exec $FSROOT/service.sh $SVC runexec

stanislav215 avatar Jan 18 '25 21:01 stanislav215

Here is fixed Docker File

FROM ubuntu:focal ENV DEBIAN_FRONTEND noninteractive

RUN groupadd -g 3066 five && useradd -r -u 3066 -g five five

RUN apt-get update && apt-get install -y
libmysqlclient-dev
python3 python3-venv python3-dev
gcc
make
pkg-config
libssl-dev
build-essential
libffi-dev

ENV FSROOT /opt/fiveserver ENV FSENV /opt/fiveserver/fsenv ENV SVC fiveserver

Prepare the virtual environment and upgrade tools

RUN mkdir -p $FSROOT COPY pip.requirements Makefile $FSROOT/ RUN python3 -m venv $FSENV &&
$FSENV/bin/pip install --upgrade pip setuptools wheel &&
$FSENV/bin/pip install -r $FSROOT/pip.requirements

COPY etc $FSROOT/etc COPY lib $FSROOT/lib COPY log $FSROOT/log COPY sql $FSROOT/sql COPY tac $FSROOT/tac COPY web $FSROOT/web COPY web6 $FSROOT/web6 COPY docker $FSROOT/docker COPY service.sh $FSROOT/

RUN chown -R five:five $FSROOT/log RUN chown -R five:five $FSROOT/etc/data

USER five WORKDIR $FSROOT CMD exec $FSROOT/service.sh $SVC runexec

Hi,

Could you help to build a image and put it on dockerhub?

Many thanks!

outcastveron avatar Feb 13 '25 08:02 outcastveron