Refine Dockerfile

3.0release
winlin 3 years ago
parent 21be9daba4
commit b4220ee7c1

@ -32,7 +32,7 @@ jobs:
shell: bash
run: |
echo "Release ossrs/srs:$SRS_TAG"
docker build --tag ossrs/srs:$SRS_TAG trunk
docker build --tag ossrs/srs:$SRS_TAG -f trunk/Dockerfile .
- name: Login docker hub
uses: docker/login-action@v1

@ -14,7 +14,7 @@ jobs:
################################################################
# Tests
- name: Build test image
run: docker build --tag srs:test -f trunk/Dockerfile.test trunk
run: docker build --tag srs:test -f trunk/Dockerfile.test .
# For utest
- name: Run SRS utest
run: docker run --rm srs:test bash -c 'make && ./objs/srs_utest'

@ -4,7 +4,7 @@ FROM ossrs/srs:dev AS build
RUN yum install -y gcc make gcc-c++ patch unzip perl git
# Build and install SRS.
COPY . /srs/trunk
COPY . /srs
WORKDIR /srs/trunk
RUN ./configure --jobs=2 && make -j2 && make install

@ -4,6 +4,6 @@ FROM ossrs/srs:dev
RUN yum install -y gcc make gcc-c++ patch unzip perl git
# Build and install SRS.
COPY . /srs/trunk
COPY . /srs
WORKDIR /srs/trunk
RUN ./configure --with-utest --jobs=2 && make -j2

Loading…
Cancel
Save