Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for playground app #236

Merged
merged 1 commit into from
Oct 7, 2024
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 @@
node_modules
.nx
api
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM ubuntu:22.04

WORKDIR /mnt/workspace

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y curl

RUN curl -sL https://deb.nodesource.com/setup_20.x | bash && \
apt-get install -y nodejs && \
npm install -g pnpm@9.1.2

COPY . ./

ENV PORT=8080
RUN pnpm install && pnpm run pg-build

CMD ["pnpm", "pg-start-docker"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"pg-dev": "nx run playground:dev",
"pg-build": "nx run playground:build",
"pg-start": "nx run playground:start",
"pg-start-docker": "cd playground && npx next start",
"api-build": "nx run api:build",
"api-serve": "nx run api:serve",
"api-test": "nx run api:test"
Expand Down