-
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: wip multi arch dockerfiles * chore: 🔧 multiarch wip * chore: 🔧 finish docker 32 * chore: 🔧 add arm64 dockerimage * chore: 🔧 cleanup
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# --------------- | ||
# Install Dependencies | ||
# --------------- | ||
FROM arm32v7/node:12-alpine as build | ||
|
||
# Install dependencies neccesary for node-gyp on node alpine | ||
RUN apk add --update --no-cache \ | ||
python \ | ||
make \ | ||
g++ | ||
|
||
# Install app dependencies | ||
COPY package.json . | ||
COPY yarn.lock . | ||
RUN yarn install --network-timeout 100000 --silent --prod | ||
RUN yarn add --dev cross-env | ||
|
||
# --------------- | ||
# Build App | ||
# --------------- | ||
FROM arm32v7/node:12-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Copy dependencies from build stage | ||
COPY --from=build node_modules node_modules | ||
|
||
# Bundle app source | ||
COPY . . | ||
RUN yarn build | ||
EXPOSE 3000 | ||
|
||
CMD [ "yarn", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# --------------- | ||
# Install Dependencies | ||
# --------------- | ||
FROM arm64v8/node:12-alpine as build | ||
|
||
# Install dependencies neccesary for node-gyp on node alpine | ||
RUN apk add --update --no-cache \ | ||
python \ | ||
make \ | ||
g++ | ||
|
||
# Install app dependencies | ||
COPY package.json . | ||
COPY yarn.lock . | ||
RUN yarn install --network-timeout 100000 --silent --prod | ||
RUN yarn add --dev cross-env | ||
|
||
# --------------- | ||
# Build App | ||
# --------------- | ||
FROM arm64v8/node:12-alpine | ||
|
||
WORKDIR /app | ||
|
||
# Copy dependencies from build stage | ||
COPY --from=build node_modules node_modules | ||
|
||
# Bundle app source | ||
COPY . . | ||
RUN yarn build | ||
EXPOSE 3000 | ||
|
||
CMD [ "yarn", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters