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 Feb 10, 2019
1 parent 30e4f2b commit 59f95a3
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:boron-alpine as builder
FROM arm32v6/node:8-alpine as builder
RUN apk add -U build-base python
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN yarn && \
npm rebuild --build-from-source && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline

FROM node:boron-alpine
FROM arm32v6/node:8-alpine
LABEL maintainer="[email protected]"
LABEL maintainer="[email protected]"

ENV PORT=3000
ENV SSHHOST=localhost
ENV SSHPORT=22

WORKDIR /usr/src/app
ENV NODE_ENV=production
RUN apk add -U openssh-client sshpass
EXPOSE 3000
EXPOSE $PORT
COPY --from=builder /usr/src/app/dist /usr/src/app/dist
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
COPY package.json /usr/src/app
Expand Down

0 comments on commit 59f95a3

Please sign in to comment.