fix: Docker compatibility
This commit is contained in:
parent
3cfdde809a
commit
461a989bb2
|
|
@ -13,7 +13,6 @@ COPY . .
|
|||
# Build React app
|
||||
RUN npm run build
|
||||
|
||||
|
||||
# ---------- Production stage ----------
|
||||
FROM nginx:alpine
|
||||
|
||||
|
|
@ -26,6 +25,7 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|||
# Copy build output
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 3000
|
||||
# Expose standard nginx port
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
server {
|
||||
listen 3000;
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
|
|
|
|||
Loading…
Reference in New Issue