Skip to content

Commit

Permalink
fix: move pio update to the entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thiago-scherrer committed Jun 14, 2023
1 parent b47306a commit 08f59c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ FROM python:3.7-buster

ENV PIO_URL https://github.com/platformio/platformio-core/archive/develop.zip

RUN pip install -U ${PIO_URL} \
&& pio pkg update
RUN pip install -U ${PIO_URL}

COPY bin/entrypoint.sh /bin/entrypoint.sh

Expand Down
8 changes: 6 additions & 2 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash
#!/usr/bin/env bash
#
function update () {
pio pkg update
}

function build () {
pio run
}

build
update && build

0 comments on commit 08f59c1

Please sign in to comment.