Skip to content

Commit

Permalink
fix: frontend Dockerfile case FromAs
Browse files Browse the repository at this point in the history
  • Loading branch information
nischalstha9 committed Aug 1, 2024
1 parent 3f1738b commit 9eb923d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
ARG NODE_BASE=18.16.0-bullseye-slim

# Base image with frontend code
FROM node:${NODE_BASE} as base
FROM node:${NODE_BASE} AS base

RUN mkdir -p /app
WORKDIR /app
COPY ./src/frontend /app

# Run development environment
FROM base as development
FROM base AS development
ENTRYPOINT ["/bin/sh", "-c", "env | tee .env ; yarn; yarn start --host 0.0.0.0;"]

# Generate frontend build files
FROM base as build
FROM base AS build
COPY ../.env .env
RUN yarn
RUN yarn build

# Copy static files to minio and generated index.html to backend services
FROM docker:27.0-dind-rootless as live
FROM docker:27.0-dind-rootless AS live
USER 0
RUN apk update && apk add minio-client envsubst
COPY --from=build /app/dist /tmp/dist
Expand Down

0 comments on commit 9eb923d

Please sign in to comment.