diff options
Diffstat (limited to 'frontend/Dockerfile')
| -rw-r--r-- | frontend/Dockerfile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 7e2e616..d78afc3 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -6,17 +6,18 @@ ARG ALBATROSS_BASE_PATH WORKDIR /app ENV NODE_ENV=production -COPY package.json package-lock.json . -RUN npm install --include=dev +COPY package.json package-lock.json ./ +COPY frontend/package.json frontend/ +RUN npm install -w frontend --include=dev -COPY . . +COPY frontend/ frontend/ ENV ALBATROSS_BASE_PATH="$ALBATROSS_BASE_PATH" -RUN npm run build +RUN npm -w frontend run build ################################################################################ FROM nginx:1.27-alpine -COPY --from=builder /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=builder /app/frontend/dist /usr/share/nginx/html +COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 |
