Skip to content

Commit

Permalink
fix: bring server files to the root
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsc0301 committed Jul 4, 2023
1 parent 326d439 commit f7115e0
Show file tree
Hide file tree
Showing 7 changed files with 603 additions and 630 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ FROM node:18-alpine

COPY . .

RUN npm install
RUN npm run build

WORKDIR /server

ENV PORT=8080

RUN npm install
RUN npm run build

EXPOSE 8080:8080
CMD [ "npm", "run", "start" ]
4 changes: 2 additions & 2 deletions server/index.js → index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createHash } from "node:crypto";
import { Player } from '../src/Player.js';
import { Player } from './src/Player.js';
import { Response, BAD_REQUEST, OK, UNAUTHORIZED } from './src/Response.js';
import Room from '../src/Room.js';
import Room from './src/Room.js';

import express from 'express';

Expand Down
Loading

0 comments on commit f7115e0

Please sign in to comment.