3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-17 19:36:18 +00:00

dockerfile: use PREFIX instead of cp

This commit is contained in:
1138-4EB 2019-08-07 05:37:00 +02:00
parent 5e2919de02
commit 99de39fc79

View file

@ -31,19 +31,22 @@ RUN apt-get update -qq \
&& apt-get autoclean && apt-get clean && apt-get -y autoremove \ && apt-get autoclean && apt-get clean && apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists && rm -rf /var/lib/apt/lists
COPY . / COPY . /yosys
RUN make \ ENV PREFIX /opt/yosys
RUN cd /yosys \
&& make \
&& make install \ && make install \
&& mkdir dist && cp yosys yosys-abc yosys-config yosys-filterlib yosys-smtbmc dist/ && make test
#--- #---
FROM base 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 RUN useradd -m yosys
USER yosys USER yosys