Skip to content

Commit

Permalink
delete custom dockerfiles for arm (#451)
Browse files Browse the repository at this point in the history
Co-authored-by: Lounès Ksouri <[email protected]>
  • Loading branch information
apotdevin and louneskmt committed May 5, 2022
1 parent 19219d7 commit a08b826
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 617 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ WORKDIR /app

# Install dependencies neccesary for node-gyp on node alpine
RUN apk add --update --no-cache \
libc6-compat \
python \
make \
g++

libc6-compat \
python \
make \
g++

# Install app dependencies
COPY package.json package-lock.json ./
Expand Down Expand Up @@ -42,7 +41,7 @@ RUN npm prune --production
# ---------------
# Release App
# ---------------
FROM node:14.15-alpine
FROM node:14.15-alpine as final

WORKDIR /app

Expand All @@ -54,7 +53,7 @@ ENV NODE_ENV=${NODE_ENV}
ENV NEXT_TELEMETRY_DISABLED=1

COPY --from=build /app/package.json ./
COPY --from=build /app/node_modules/ ./node_modules
COPY --from=build /app/node_modules/ ./node_modules

# Copy NextJS files
COPY --from=build /app/src/client/public ./src/client/public
Expand All @@ -66,4 +65,4 @@ COPY --from=build /app/dist/ ./dist

EXPOSE 3000

CMD [ "npm", "run", "start:prod" ]
CMD [ "npm", "run", "start:prod" ]
69 changes: 0 additions & 69 deletions arm32v7.Dockerfile

This file was deleted.

66 changes: 0 additions & 66 deletions arm64v8.Dockerfile

This file was deleted.

Loading

0 comments on commit a08b826

Please sign in to comment.