diff --git a/Dockerfile b/Dockerfile index 9e055cb..9a3a46a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM node:22 AS build +FROM node:22-alpine AS build WORKDIR /app -COPY package.json ./ -COPY yarn.lock ./ +RUN corepack enable +COPY package.json yarn.lock ./ RUN yarn install COPY . . RUN yarn build @@ -10,5 +10,5 @@ FROM node:22-alpine WORKDIR /app COPY --from=build /app/.output/ ./ ENV PORT=80 +EXPOSE 80 CMD ["node", "/app/server/index.mjs"] -#COPY --from=build /app/dist /usr/share/nginx/html