Skip to content

Commit 04d36d0

Browse files
committed
Set correct permissions for install scripts + fix Dockerfile
1 parent 4351257 commit 04d36d0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
FROM resin/rpi-raspbian:latest
22

3+
RUN mkdir /opt/code
4+
WORKDIR /opt/code
5+
36
# Install OS dependencies
47
RUN echo "Installing OS package dependencies"
5-
RUN ./scripts/install-linux
8+
COPY scripts /opt/code/scripts
9+
RUN /opt/code/scripts/install-linux
610

711
# For bluez source compilation
812
#RUN apt-get install automake libtool libudev-dev
913

1014
# Install Python dependencies
11-
RUN mkdir /opt/code
12-
WORKDIR /opt/code
1315
COPY requirements.txt requirements.txt
1416
RUN pip3 install --upgrade pip
1517
RUN pip3 install --upgrade setuptools
@@ -20,7 +22,6 @@ RUN pip3 install -r requirements_test.txt
2022
# Copy source code and execute tests
2123
COPY bluefang /opt/code/bluefang
2224
COPY tests /opt/code/tests
23-
COPY scripts /opt/code/scripts
2425
#USER root
2526

2627
#RUN python3 -m pytest

scripts/install-dependencies

100644100755
File mode changed.

scripts/install-linux

100644100755
File mode changed.

0 commit comments

Comments
 (0)