mirror of https://github.com/cppla/ServerStatus
Optimize Dockerfile
parent
a02f8ee7dd
commit
0f3945733d
|
@ -2,14 +2,14 @@ FROM debian:latest as builder
|
||||||
|
|
||||||
MAINTAINER cppla https://cpp.la
|
MAINTAINER cppla https://cpp.la
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && \
|
||||||
RUN apt-get -y install gcc g++ make git
|
apt-get -y install gcc g++ make git && \
|
||||||
RUN git clone https://github.com/cppla/ServerStatus
|
git clone https://github.com/cppla/ServerStatus
|
||||||
|
|
||||||
WORKDIR /ServerStatus/server
|
WORKDIR /ServerStatus/server
|
||||||
|
|
||||||
RUN make
|
RUN make && \
|
||||||
RUN pwd && ls -a
|
pwd && ls -a
|
||||||
|
|
||||||
# glibc env run
|
# glibc env run
|
||||||
FROM nginx:latest
|
FROM nginx:latest
|
||||||
|
|
Loading…
Reference in New Issue