2018-11-07 12:05:14 -07:00
|
|
|
FROM alpine:3.8
|
2018-05-09 13:15:59 -07:00
|
|
|
|
|
|
|
# Copy files
|
|
|
|
ADD . /app
|
|
|
|
RUN cp /app/data/configuration.yaml /app
|
|
|
|
RUN cp /app/docker/run.sh /app
|
|
|
|
RUN chmod +x /app/run.sh
|
|
|
|
WORKDIR /app
|
|
|
|
|
2018-06-15 15:10:08 -07:00
|
|
|
# Write .hash.json
|
|
|
|
ARG COMMIT
|
|
|
|
RUN echo "{\"hash\": \"$COMMIT\"}" > .hash.json
|
|
|
|
|
2018-05-09 13:15:59 -07:00
|
|
|
# Install dependencies
|
2018-11-07 12:25:38 -07:00
|
|
|
RUN apk add --update --no-cache make gcc g++ python linux-headers udev nodejs=8.11.4-r0 npm=8.11.4-r0 git && \
|
2018-05-09 13:15:59 -07:00
|
|
|
npm install --unsafe-perm && \
|
2018-06-15 15:10:08 -07:00
|
|
|
apk del make gcc g++ python linux-headers udev git
|
2018-05-09 13:15:59 -07:00
|
|
|
|
|
|
|
# Entrypoint
|
|
|
|
ENTRYPOINT ["./run.sh"]
|