add build platform target

This commit is contained in:
Alex Holliday committed 2025-05-14 12:00:54 -07:00
1 parent 7a1b51a1fd
commit a0f41b03ba
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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"
@@ -21,7 +21,7 @@ COPY ./client .
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 --from=build /app/dist /usr/share/nginx/html
+1 -1
View File
@@ -1,3 +1,3 @@
FROM mongo
FROM --platform=$BUILDPLATFORM mongo
EXPOSE 27017
CMD ["mongod"]
+1 -1
View File
@@ -1,2 +1,2 @@
FROM redis
FROM --platform=$BUILDPLATFORM redis
EXPOSE 6379
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM --platform=$BUILDPLATFORM node:20-alpine
WORKDIR /app