-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile.local
More file actions
30 lines (22 loc) · 850 Bytes
/
Copy pathDockerfile.local
File metadata and controls
30 lines (22 loc) · 850 Bytes
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
FROM nginx:alpine
# Copy static files
COPY static/ /usr/share/nginx/html
# Copy the backend executable, which is built locally
# and located in the 'backend' directory.
COPY backend/roadbook-api /usr/local/bin/roadbook-api
# Create a directory for the backend data
RUN mkdir -p /app/data && chown nginx:nginx /app/data
# Copy backend config
RUN mkdir -p /app/configs
COPY backend/configs/config.json /app/configs/config.json
COPY backend/configs/airports.json /app/configs/airports.json
COPY backend/configs/station_geo.json /app/configs/station_geo.json
# Copy the custom Nginx configuration
COPY nginx.prod.conf /etc/nginx/nginx.conf
# Copy the entrypoint script
COPY docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
# Expose port 80 for Nginx
EXPOSE 80
# Run the entrypoint script
CMD ["/docker-entrypoint.sh"]