Files
stamp/frontend/Dockerfile
2025-06-29 11:34:40 +02:00

25 lines
398 B
Docker

FROM node:18-alpine
WORKDIR /app
# Install curl for healthcheck
RUN apk --no-cache add curl
# Install dependencies
COPY package.json package-lock.json ./
RUN npm install
# Copy app files
COPY public/ ./public/
COPY src/ ./src/
EXPOSE 4000
ENV PORT=4000
ENV WDS_SOCKET_PORT=0
# Create an .env file at build time
RUN echo "REACT_APP_API_URL=http://localhost:8000" > .env
CMD ["npm", "start"]