FROM node:lts-alpine AS node # install simple http server for serving static content RUN npm install -g http-server # make the 'app' folder the current working directory WORKDIR /app # copy project files and folders to the current working directory (i.e. 'app' folder) COPY . . EXPOSE 8080 CMD ["http-server", ".", "-p", "8080"]