mirror of
https://github.com/SrIzan10/makesweet-api.git
synced 2026-05-01 10:55:14 +00:00
use entrypoint to shorten command
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,13 +1,17 @@
|
||||
FROM ubuntu:14.04
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN \
|
||||
apt-get update; \
|
||||
apt-get install -y build-essential
|
||||
|
||||
RUN \
|
||||
apt-get update; \
|
||||
apt-get install -y libgd-dev libzzip-dev libopencv-highgui-dev
|
||||
|
||||
RUN \
|
||||
cd tmp; \
|
||||
apt-get update; \
|
||||
apt-get install -y cmake3 wget; \
|
||||
apt-get install -y cmake wget; \
|
||||
wget https://github.com/robotology/yarp/archive/v2.3.72.tar.gz; \
|
||||
tar xzvf v2.3.72.tar.gz; \
|
||||
mkdir yarp; \
|
||||
@@ -15,10 +19,6 @@ RUN \
|
||||
cmake -DSKIP_ACE=TRUE ../yarp-*; \
|
||||
make
|
||||
|
||||
RUN \
|
||||
apt-get update; \
|
||||
apt-get install -y libgd2-noxpm-dev libzzip-dev
|
||||
|
||||
COPY . /makesweet/
|
||||
|
||||
RUN \
|
||||
@@ -33,3 +33,5 @@ RUN \
|
||||
echo "cd /share" >> /reanimator; \
|
||||
echo "/makesweet/build/bin/reanimator \"\$@\"" >> /reanimator; \
|
||||
chmod u+x /reanimator
|
||||
|
||||
ENTRYPOINT ["/reanimator"]
|
||||
|
||||
@@ -5,13 +5,13 @@ Input
|
||||
|
||||

|
||||
|
||||
Calculations
|
||||
------------
|
||||
Running makesweet
|
||||
-----------------
|
||||
|
||||
```
|
||||
docker run -v $PWD:/share paulfitz/makesweet /reanimator \
|
||||
docker run -v $PWD:/share paulfitz/makesweet \
|
||||
--zip templates/billboard-cityscape.zip \
|
||||
--in templates/frog.jpg \
|
||||
--in images/frog.jpg \
|
||||
--gif animation.gif
|
||||
```
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user