2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-26 07:13:34 +01:00

add jamapi

This commit is contained in:
kev
2016-04-28 20:52:09 +08:00
parent ca3373036e
commit a9919aa78b
4 changed files with 33 additions and 0 deletions

19
jamapi/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
#
# Dockerfile for jamapi
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
WORKDIR /app
RUN set -xe \
&& apk add -U ca-certificates curl nodejs tar \
&& curl -sSL https://github.com/gavindinubilo/jam-api/archive/master.tar.gz | tar xz --strip 1 \
&& npm install --production \
&& apk del curl tar \
&& rm -rf /tmp/npm* /var/cache/apk/*
EXPOSE 5000
CMD ["node", "index"]