Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
peaklabs-dev authored Dec 23, 2024
1 parent 9df917f commit f0aa194
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:lts-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --platform=linux --arch=arm64
RUN npm ci

COPY . .
RUN npm install --platform=linux --arch=arm64
RUN npm run build

FROM nginx:alpine AS runtime
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
EXPOSE 80

0 comments on commit f0aa194

Please sign in to comment.