Skip to content

Commit

Permalink
Add a Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Considine committed Jul 31, 2024
1 parent 49b3a00 commit c1bd3ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Build stage
FROM node:18 as build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

# Serve stage
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
2 changes: 1 addition & 1 deletion src/hooks/useHttp.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useState, useCallback, useEffect, useMemo } from 'react';
import { useState, useCallback, useMemo } from 'react';

const API_BASE_URL: string = 'http://localhost:8000';

Expand Down

0 comments on commit c1bd3ae

Please sign in to comment.