Skip to content

Commit

Permalink
few more changes to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysGonchar committed Oct 27, 2023
1 parent 8358bfc commit bcfedb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ FROM erlang:${otp_vsn} AS builder
MAINTAINER Erlang Solutions <[email protected]>

WORKDIR /amoc

COPY ./ ./
RUN git clean -ffxd

RUN make clean
RUN make rel

ENV PATH "/amoc/_build/default/rel/amoc/bin:${PATH}"
Expand Down
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif
default: compile

rel:
$(REBAR) tar
$(REBAR) release

deps:
$(REBAR) deps
Expand All @@ -23,10 +23,14 @@ clean:
rm -rf _build

ct:
## in order to run just a single test suite you can override
## the SUITE variable from the command line:
## in order to run some specific test suite(s) you can override
## the SUITE variable from the command line or as env variable:
## make ct SUITE=some_test_SUITE
$(REBAR) ct --verbose $(SUITE_OPTS)
## make ct SUITE=some_test_SUITE,another_test_SUITE
## SUITE=some_test_SUITE make ct
## SUITE=some_test_SUITE,another_test_SUITE make ct
@ echo $(REBAR) ct --verbose $(SUITE_OPTS)
@ $(REBAR) ct --verbose $(SUITE_OPTS)

lint:
$(REBAR) as elvis lint
Expand Down

0 comments on commit bcfedb1

Please sign in to comment.