-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
42 lines (34 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# BWIP Server
#
# VERSION 0.7.1
#
# Dockerfile for BWIP Barcode Image Server
# ========================================
#
# Use with Docker http://www.docker.io
#
# To build an image with docker is pretty simple:
#
# $ docker build -t bwipserver github.com/heartyoh/bwip
#
# Then to run that image and attach to it at the same time:
#
# $ docker run -d -p 80:3030 --name bwipserver bwipserver
#
# To test bwipserver, try to open following URL on the internet browser:
#
# http://{yourserver}/?bcid=code128&text=^FNC1011234567890&scale=4&rotate=L&parsefnc&alttext=(01)01234567890
#
FROM ubuntu:12.04
MAINTAINER Hearty, Oh. "[email protected]"
# make sure the package repository is up to date
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
# install wget
RUN apt-get -y install wget
# install nodejs
RUN wget -O - http://nodejs.org/dist/v0.10.25/node-v0.10.25-linux-x64.tar.gz | tar -C /usr/local/ --strip-components=1 -zxv
# node package install 'bwip'
RUN npm install bwip
EXPOSE 3030
CMD ["node", "node_modules/bwip/example/node-barcode-server.js"]