Skip to content

Commit

Permalink
Update optimize dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan <[email protected]>
  • Loading branch information
cookienc committed Aug 23, 2023
1 parent 4cfff6d commit da25da3
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# Copyright (c) 2022 LG Electronics Inc.
# SPDX-License-Identifier: Apache-2.0
FROM ubuntu:20.04
FROM ubuntu:20.04

RUN apt-get update && apt-get install sudo -y
RUN apt-get update && apt-get install sudo -y
RUN ln -sf /bin/bash /bin/sh

COPY . /app
COPY . /app
WORKDIR /app

ENV DEBIAN_FRONTEND=noninteractive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -y install build-essential
RUN apt-get -y install python3 python3-distutils python3-pip python3-dev
RUN apt-get -y install python3-intbitset python3-magic
RUN apt-get -y install libxml2-dev
RUN apt-get -y install libxslt1-dev
RUN apt-get -y install libhdf5-dev
RUN apt-get -y install bzip2 xz-utils zlib1g libpopt0
RUN apt-get -y install gcc-10 g++-10
RUN pip3 install --upgrade pip
RUN pip3 install .
RUN pip3 install dparse
RUN apt-get -y install build-essential \
&& apt-get -y install python3-distutils python3-pip python3-dev \
&& apt-get -y install python3-intbitset python3-magic \
&& apt-get -y install libxml2-dev \
&& apt-get -y install libxslt1-dev \
&& apt-get -y install libhdf5-dev \
&& apt-get -y install bzip2 xz-utils zlib1g libpopt0 \
&& apt-get -y install gcc-10 g++-10

ENTRYPOINT ["/usr/local/bin/fosslight"]
RUN pip3 install --upgrade pip \
&& pip3 install . \
&& pip3 install dparse

ENTRYPOINT ["/usr/local/bin/fosslight"]

0 comments on commit da25da3

Please sign in to comment.