Skip to content

Commit 1a4fe25

Browse files
authored
Merge pull request #214 from padmajabhol/development
Feat: add dockerfile
2 parents 7b5e0f2 + 50b51ef commit 1a4fe25

5 files changed

Lines changed: 22 additions & 0 deletions

File tree

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:16
2+
ENV NODE_ENV development
3+
WORKDIR /usr/src/frontend
4+
5+
COPY package.json .
6+
COPY yarn.lock .
7+
RUN yarn
8+
COPY . .
9+
10+
RUN yarn build
11+
12+
13+
EXPOSE 3000
14+
CMD ["yarn", "start"]

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"axios": "^0.27.2",
1717
"bootstrap": "^5.0.1",
1818
"date-fns": "^2.29.1",
19+
"dotenv": "^16.0.3",
1920
"eslint-plugin-import": "^2.26.0",
2021
"eslint-plugin-markdown": "^2.2.1",
2122
"eslint-plugin-react-hooks": "^4.3.0",

src/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { BrowserRouter as Router, Switch, Route, Redirect, useHistory } from 're
1212
import { ApolloClient, InMemoryCache, ApolloProvider, HttpLink, from } from '@apollo/client';
1313
import { format } from 'date-fns';
1414
import { onError } from '@apollo/client/link/error';
15+
// import * as dotenv from 'dotenv';
1516

1617
// Styles
1718
import './index.css';

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4957,6 +4957,11 @@ dotenv@8.2.0:
49574957
resolved "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz"
49584958
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
49594959

4960+
dotenv@^16.0.3:
4961+
version "16.0.3"
4962+
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07"
4963+
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==
4964+
49604965
duplexer2@0.0.2:
49614966
version "0.0.2"
49624967
resolved "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz"

0 commit comments

Comments
 (0)