Skip to content

Commit

Permalink
Change Dockerfile to BUILDPLATFORM
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipeRamalho committed Jan 19, 2024
1 parent 77ee8c2 commit 53d7810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Use an official Node.js runtime as the base image
FROM --platform=$TARGETPLATFORM node:20-alpine as build
FROM --platform=$BUILDPLATFORM node:20-alpine as build
LABEL org.opencontainers.image.source="https://github.com/Capy-IT/WebTemplate"

# Set the working directory in the container
Expand All @@ -19,7 +19,7 @@ COPY src/ ./src
RUN yarn build


FROM --platform=$TARGETPLATFORM alpine as run
FROM --platform=$BUILDPLATFORM alpine as run

RUN apk update \
&& apk add lighttpd \
Expand Down

0 comments on commit 53d7810

Please sign in to comment.