Skip to content

Commit

Permalink
dockerfile: use PREFIX instead of cp
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB committed Aug 7, 2019
1 parent 5e2919d commit 99de39f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,22 @@ RUN apt-get update -qq \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists

COPY . /
COPY . /yosys

RUN make \
ENV PREFIX /opt/yosys

RUN cd /yosys \
&& make \
&& make install \
&& mkdir dist && cp yosys yosys-abc yosys-config yosys-filterlib yosys-smtbmc dist/
&& make test

#---

FROM base

COPY --from=build /dist /opt/yosys
COPY --from=build /opt/yosys /opt/yosys

ENV PATH /opt/yosys:$PATH
ENV PATH /opt/yosys/bin:$PATH

RUN useradd -m yosys
USER yosys
Expand Down

0 comments on commit 99de39f

Please sign in to comment.