Skip to content

Commit

Permalink
fix base image for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed Oct 2, 2024
1 parent 89ccf49 commit a28142f
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,22 +1,22 @@
# syntax=docker/dockerfile:1

FROM node:18 AS setup
FROM node:18-alpine AS setup
WORKDIR /app
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/ .yarn/
COPY packages/ packages/
RUN find packages/ -type f \! \( -name "package.json" -o -name "yarn.lock" \) -delete && \
find . -type d -empty -delete

FROM node:18 AS build
FROM node:18-alpine AS build
WORKDIR /app
COPY --from=setup /app .
RUN yarn install --immutable
COPY . .
WORKDIR /app/packages/apollo-collaboration-server
RUN yarn build

FROM node:18
FROM node:18-alpine
LABEL org.opencontainers.image.source=https://github.com/GMOD/Apollo3
LABEL org.opencontainers.image.description="Apollo collaboration server"
WORKDIR /app
Expand Down

0 comments on commit a28142f

Please sign in to comment.