Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fmt_converter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xuebingbing
fmt_converter
Commits
83180623
Commit
83180623
authored
Dec 21, 2020
by
xuebingbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增docker ubuntu1804
parent
8dba0d3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
Dockerfile
docker/ubuntu1804/Dockerfile
+56
-0
No files found.
docker/ubuntu1804/Dockerfile
0 → 100644
View file @
83180623
# 指定基础镜像
ARG
BASE_IMAGE=ubuntu:18.04
FROM
$BASE_IMAGE as builder
# MAINTAINER
MAINTAINER
xuebingbing@juefx.com
WORKDIR
/
RUN
mv
/etc/apt/sources.list /etc/apt/sources.list.bak
&&
\
echo
"deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse"
>
/etc/apt/sources.list
&&
\
echo
"deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse"
>>
/etc/apt/sources.list
&&
\
echo
"deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse"
>>
/etc/apt/sources.list
RUN
apt-get update
-y
\
&&
apt-get upgrade
-y
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
--assume-yes
apt-utils autoconf pkg-config libtool cmake
\
libpdal-dev libpcl-dev git vim
WORKDIR
/build
RUN
git clone
--branch
master http://git.corp.roadlinks.cn:2020/xueye9/fmt_converter.git fmt_converter
Workdir
/build/build
RUN
cmake
-DCMAKE_INSTALL_PREFIX
=
/installed /build/fmt_converter
\
&&
make
-j16
&&
make
install
#编译相关自己的源代码
#通过拷贝的方式减小镜像大小 build final image
FROM
$BASE_IMAGE as runner
RUN
date
RUN
apt-get update
-y
\
&&
apt-get upgrade
-y
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
--assume-yes
apt-utils
\
&&
pdal libpcl-dev libpcl-io1.8
#RUN apt-get update -y \
# && apt upgrade -y \
# && DEBIAN_FRONTEND=noninteractive apt-get install $依赖库
#
COPY
--from builder /build/build/installed/include/* /usr/include
COPY
--from builder /build/build/installed/bin/* /usr/bin
COPY
--form builder /build/build/installed/lib/* /usr/lib/x86_64-linux-gnu
COPY
--form builder /build/build/installed/share/* /usr/share
ENV
LANG C.UTF-8
RUN
ldconfig
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment