mirror of
https://github.com/Stijnvandenbroek/stamp.git
synced 2026-01-15 07:26:53 +01:00
25 lines
398 B
Docker
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"]
|