mirror of
https://github.com/Stijnvandenbroek/stamp.git
synced 2026-01-14 23:16:54 +01:00
feat: initial commit
This commit is contained in:
24
stamp_frontend/Dockerfile
Normal file
24
stamp_frontend/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user