Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Add Dockerfile to spin up functional tests #365

Merged
merged 2 commits into from
Jul 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
**/node_modules
**/built
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ built
npm-debug.log
lerna-debug.log
.openode
Dockerfile
docker-compose.yml

# dotenv environment configuration files
.env
Expand Down
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:10.16-alpine
WORKDIR /opt/mre

COPY package*.json lerna.json ./
COPY packages/altspacevr-extras/package*.json ./packages/altspacevr-extras/
COPY packages/functional-tests/package*.json ./packages/functional-tests/
COPY packages/gltf-gen/package*.json ./packages/gltf-gen/
COPY packages/sdk/package*.json ./packages/sdk/
RUN ["npm", "install", "--unsafe-perm"]

COPY tsconfig.json ./
COPY packages ./packages/
RUN npm run build-only

EXPOSE 3901/tcp
CMD ["npm", "start"]
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"bootstrap": "lerna bootstrap",
"postinstall": "npm run bootstrap",
"clean": "tsc --build --clean",
"build": "tsc --build && npm run lint",
"build": "npm run build-only && npm run lint",
"build-only": "tsc --build",
"build-docs": "lerna run build-docs",
"lint": "tslint -p ./packages/tsconfig.lint.json",
"lint-docs": "lerna run lint-docs",
Expand Down