Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
changed to armhf architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
mammo0 committed Dec 22, 2018
1 parent 9d8a5ee commit f9b6845
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 [email protected]
MAINTAINER [email protected]

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

0 comments on commit f9b6845

Please sign in to comment.