Skip to content

Commit 3c001ab

Browse files
authored
Merge pull request #50 from darthjee/docker
Dockerize
2 parents 79eb51b + 39b45e9 commit 3c001ab

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ruby:2.5.0 as base
2+
3+
RUN apt-get update && apt-get install -y gnuplot
4+
5+
RUN useradd -u 1000 gnuplot; \
6+
mkdir -p /home/gnuplot/gnuplot; \
7+
chown gnuplot.gnuplot -R /home/gnuplot
8+
9+
WORKDIR /home/gnuplot/gnuplot
10+
11+
USER gnuplot
12+
RUN gem install jeweler2

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3'
2+
services:
3+
ruby_gnuplot:
4+
build: .
5+
working_dir: /home/gnuplot/gnuplot
6+
container_name: ruby_gnuplot
7+
command: /bin/bash
8+
volumes:
9+
- .:/home/gnuplot/gnuplot

0 commit comments

Comments
 (0)