[New Feature] Support SAM 2.1 (#59)
* support sam 2.1 * refine config path and ckpt path * update README
This commit is contained in:
26
demo/frontend/frontend.Dockerfile
Normal file
26
demo/frontend/frontend.Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
# Stage 1: Build Stage
|
||||
FROM node:22.9.0 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and yarn.lock
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
|
||||
# Install dependencies
|
||||
RUN yarn install --frozen-lockfile
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN yarn build
|
||||
|
||||
# Stage 2: Production Stage
|
||||
FROM nginx:latest
|
||||
|
||||
# Copy built files from the build stage to the production image
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
# Container startup command for the web server (nginx in this case)
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
Reference in New Issue
Block a user