Skip to content

Commit 151f112

Browse files
committed
added
1 parent 3aed184 commit 151f112

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎v4-cokapi/Dockerfile‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# to build:
2+
# docker build -t="pgbovine/cokapi:v1" .
3+
#
4+
# to test:
5+
# docker run -t -i --rm pgbovine/cokapi:v1 bash
6+
#
7+
# remember --rm or else stale old containers will be left around!
8+
# use "docker ps -a" to see all containers
9+
FROM ubuntu:latest
10+
MAINTAINER Philip Guo <philip@pgbovine.net>
11+
RUN apt-get update && apt-get install -y \
12+
nodejs \
13+
python
14+
RUN ln -s /usr/bin/nodejs /usr/bin/node
15+
16+
RUN mkdir /tmp/javascript
17+
RUN mkdir /tmp/python
18+
19+
# IMPORTANT: make sure to run 'make deps' in backends/javascript first
20+
# to install the proper node modules inside of here via npm before
21+
# creating this Docker container, since it's a pain to install npm and
22+
# modules within the container
23+
ADD backends/javascript /tmp/javascript
24+
ADD backends/python /tmp/python

0 commit comments

Comments
 (0)