diff --git a/Dockerfile b/Dockerfile index a98a179..895dbf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ -arg image=debian:buster-slim -from ${image} -#from debian:buster-slim -#from python:3-slim-buster +ARG image=debian:buster-slim +FROM ${image} -workdir /tmp/ -copy libfwlib32* fwlib32.h install.sh ./ +WORKDIR /tmp/ +COPY libfwlib32* fwlib32.h scripts/install.sh ./ -run ./install.sh +RUN ./install.sh diff --git a/README.md b/README.md index 58980a0..a9257ce 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # Fanuc FOCAS Library +[![Docker Hub](https://img.shields.io/docker/v/strangesast/fwlib?sort=date)](https://hub.docker.com/r/strangesast/fwlib) Header and runtime files for CNC communication An example of its use can be found in `example/` diff --git a/example/Dockerfile b/example/Dockerfile index d00338a..e1c7d96 100644 --- a/example/Dockerfile +++ b/example/Dockerfile @@ -2,7 +2,7 @@ from strangesast/fwlib as base from base as builder -copy build-deps.sh /tmp/ +copy scripts/build-deps.sh /tmp/ run /tmp/build-deps.sh workdir /usr/src/app diff --git a/build-deps.sh b/scripts/build-deps.sh similarity index 100% rename from build-deps.sh rename to scripts/build-deps.sh diff --git a/install.sh b/scripts/install.sh similarity index 100% rename from install.sh rename to scripts/install.sh