add build platform target
This commit is contained in:
1 parent
7a1b51a1fd
commit
a0f41b03ba
4 files changed
+5
-5
No files matched your search
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine AS build
|
FROM --platform=$BUILDPLATFORM node:20-alpine AS build
|
||||||
|
|
||||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ COPY ./client .
|
|||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:1.27.1-alpine
|
FROM --platform=$BUILDPLATFORM nginx:1.27.1-alpine
|
||||||
|
|
||||||
COPY ./docker/dist/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
COPY ./docker/dist/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
FROM mongo
|
FROM --platform=$BUILDPLATFORM mongo
|
||||||
EXPOSE 27017
|
EXPOSE 27017
|
||||||
CMD ["mongod"]
|
CMD ["mongod"]
|
||||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
FROM redis
|
FROM --platform=$BUILDPLATFORM redis
|
||||||
EXPOSE 6379
|
EXPOSE 6379
|
||||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine
|
FROM --platform=$BUILDPLATFORM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user