mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 11:21:52 +00:00
Refine Dockerfile
This commit is contained in:
parent
21be9daba4
commit
b4220ee7c1
4 changed files with 4 additions and 4 deletions
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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…
Reference in a new issue