From f9b684523edc143ae709f2d405ab3dfa202b0bc1 Mon Sep 17 00:00:00 2001 From: mammo0 Date: Tue, 13 Nov 2018 13:34:39 +0100 Subject: [PATCH] changed to armhf architecture --- Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e6682e39..25e365146 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,24 @@ -FROM node:8-alpine as builder +FROM arm32v6/node:8-alpine as builder WORKDIR /usr/src/app RUN apk add --update build-base python COPY . /usr/src/app RUN yarn -FROM node:8-alpine + +FROM arm32v6/node:8-alpine MAINTAINER butlerx@notthe.cloud +MAINTAINER marc.ammon@fau.de + +ENV PORT=3000 +ENV SSHHOST=localhost +ENV SSHPORT=22 + WORKDIR /app RUN adduser -D -h /home/term -s /bin/sh term && \ ( echo "term:term" | chpasswd ) && \ apk add openssh-client && \ apk add sshpass USER term -EXPOSE 3000 +EXPOSE $PORT COPY --from=builder /usr/src/app /app RUN mkdir ~/.ssh CMD ssh-keyscan -H wetty-ssh >> ~/.ssh/known_hosts && node bin