docker build error
ERROR [ 6/18] RUN cd /opt/fiveserver && make FSENV=/opt/fiveserver/fsenv install
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
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-devENV 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.requirementsCOPY 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!