-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (29 loc) · 1.13 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Base image
FROM node:14-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package.json package-lock.json ./
# Install app dependencies
RUN npm install --production
# Copy the rest of the application code
COPY . .
# Expose ports
EXPOSE 5000
# Set environment variables (these will be provided by the hosting service)
# ENV DB_URL=<your-db-url>
# ENV JWT_SECRET=<your-jwt-secret>
# ENV REACT_APP_BACKEND_API=<your-backend-api-url>
# ENV REACT_APP_CLOUDINARY_CLOUDNAME=<your-cloudinary-cloudname>
# ENV REACT_APP_CLOUDINARY_FOLDER=<your-cloudinary-folder>
# ENV REACT_APP_CLOUDINARY_UPLOADPRESET=<your-cloudinary-upload-preset>
# ENV REACT_APP_POSITIONSTACK_ENABLED=<true-or-false>
# ENV REACT_APP_POSITIONSTACK_API=<your-positionstack-api-url>
# ENV REACT_APP_POSITIONSTACK_API_KEY=<your-positionstack-api-key>
# ENV REACT_APP_STRIPE_PUBLIC_KEY=<your-stripe-public-key>
# ENV REACT_APP_INFO_TAB_NAME=<your-info-tab-name>
# ENV STRIPE_SK=<your-stripe-secret-key>
# ENV ENFORCE_HTTPS=false
# ENV WEBAPP_ORIGIN=<samosabucket-webapp-origin-url>
# Start the Node.js server
CMD node index.js