-
Notifications
You must be signed in to change notification settings - Fork 10
feat(docker): Add option to run via Docker Compose #40
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
789b920
eab1fd4
82ae57c
e8ec58e
2939572
1b3f49a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM denoland/deno | ||
|
||
EXPOSE 8000 | ||
|
||
WORKDIR /app | ||
|
||
ADD . /app | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A .dockerignore file should probably be added (with the same or similar entries as .gitignore) so that this doesn't copy unwanted stuff. |
||
|
||
RUN deno cache server/main.ts | ||
|
||
ARG version | ||
ENV DENO_DEPLOYMENT_ID $version | ||
CMD deno run -A server/main.ts | ||
julian45 marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,10 @@ | ||||||
services: | ||||||
web: | ||||||
build: | ||||||
context: . | ||||||
args: | ||||||
version: v2024.6.12 | ||||||
container_name: harmony-container | ||||||
julian45 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
image: harmony | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tagging the image with
Suggested change
|
||||||
ports: | ||||||
- "8000:8000" |
Uh oh!
There was an error while loading. Please reload this page.