thunderhub/arm32v7.Dockerfile

34 lines
712 B
Text
Raw Normal View History

2020-05-19 08:20:55 +02:00
# ----------------
# Install Dependencies
2020-05-19 08:20:55 +02:00
# ----------------
2020-05-19 09:12:57 +02:00
FROM arm32v7/node:12.16-stretch as build
# Install dependencies neccesary for node-gyp on node alpine
2020-05-19 09:05:54 +02:00
# RUN apk add --update --no-cache \
# python \
# make \
# g++
# Install app dependencies
COPY package.json .
2020-05-12 12:16:44 +02:00
RUN npm install --production --silent
# Install dependencies necessary for build and start
RUN npm install -D cross-env typescript @types/react @next/bundle-analyzer
# ---------------
# Build App
# ---------------
2020-05-19 09:05:54 +02:00
FROM arm32v7/node:12.16-alpine
WORKDIR /app
# Copy dependencies from build stage
COPY --from=build node_modules node_modules
# Bundle app source
COPY . .
2020-05-12 12:16:44 +02:00
RUN npm run build
EXPOSE 3000
2020-05-12 12:16:44 +02:00
CMD [ "npm", "start" ]