healthy_oil/Dockerfile

19 lines
246 B
Docker

FROM node:18-alpine
WORKDIR /app
COPY package.json .
RUN npm install
RUN npm i -g serve
COPY . .
RUN npm run build
EXPOSE 3000
# Bind to all network interfaces, not just localhost
CMD [ "serve", "-s", "dist", "-l", "tcp://0.0.0.0:3000" ]