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 1, 2020
1 parent 41ffcaf commit 0b66e83
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
FROM node:carbon-alpine as builder
RUN apk add -U build-base python
FROM arm32v7/node:dubnium-alpine as builder
RUN apk add -U build-base python jq
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN yarn && \
RUN yarn add --force package.json && \
yarn build && \
yarn install --production --ignore-scripts --prefer-offline
yarn remove $(cat package.json | jq -r '.devDependencies | keys | join(" ")')

FROM node:carbon-alpine
FROM arm32v7/node:dubnium-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
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 0b66e83

Please sign in to comment.