2019-02-01 09:14:56 -07:00
|
|
|
FROM alpine:3.9
|
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-29 13:02:37 -07:00
|
|
|
RUN apk add --update --no-cache make gcc g++ python linux-headers udev nodejs npm 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"]
|