-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathDockerfile
35 lines (29 loc) · 912 Bytes
/
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
FROM gjovanov/node-alpine-edge
LABEL maintainer="Goran Jovanov <[email protected]>"
# Version
ADD VERSION .
# Environment variables
ENV NODE_ENV production
ENV HOST 0.0.0.0
ENV PORT 3000
ENV API_URL https://facer.xplorify.net
# Install packages & git clone source code and build the application
RUN apk add --update --no-cache --virtual .build-deps \
gcc g++ make git python2 && \
apk add --no-cache vips vips-dev fftw-dev libc6-compat \
--repository http://nl.alpinelinux.org/alpine/edge/testing/ \
--repository http://nl.alpinelinux.org/alpine/edge/main && \
cd / && \
git clone https://github.com/gjovanov/facer.git && \
cd /facer && \
npm i pm2 -g && \
npm i --production && \
npm run build && \
apk del .build-deps vips-dev fftw-dev && \
rm -rf /var/cache/apk/*
# Volumes
VOLUME /facer/data
WORKDIR /facer
EXPOSE 3000
# Define the Run command
CMD ["npm", "run", "start"]