dockerfile/examples/omnivore/official-src/omnivore-main/pkg/admin/Dockerfile

19 lines
224 B
Docker
Raw Normal View History

2024-03-15 14:52:38 +08:00
FROM node:14.18-alpine
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn install --frozen-lockfile
COPY . .
RUN NODE_ENV=production yarn build
ENV PORT=8080
EXPOSE 8080
ENV NODE_ENV production
CMD yarn start