puffinOffsetCalculator/puffin-calculator-iframe/Dockerfile

17 lines
302 B
Docker

FROM node:16-alpine as build
# Set working directory
WORKDIR /app
# Install a simple HTTP server for serving static content
RUN npm install -g http-server
# Copy application files
COPY . .
# Expose port
EXPOSE 8080
# Command to run the application
CMD ["http-server", ".", "-p", "8080", "--cors"]