-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "BilboStack App", | ||
"dockerComposeFile": [ | ||
"../docker-compose.yml", | ||
"../modules/docker/docker-compose.yml", | ||
"../modules/docker/docker-compose.dev-container.yml" | ||
], | ||
"service": "venue", | ||
"overrideCommand": true, | ||
"workspaceFolder": "/app", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"redhat.vscode-yaml", | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.python", | ||
"ms-python.black-formatter", | ||
"denoland.vscode-deno" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Empty docker-compose file to force | ||
# project directory on VSCode Dev Containers | ||
services: {} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
FROM debian:bullseye-slim AS build | ||
# Install dependencies | ||
FROM debian:bullseye-slim AS base | ||
WORKDIR /app | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3 curl git unzip ca-certificates bash \ | ||
python3 curl git unzip ca-certificates bash \ | ||
&& update-ca-certificates | ||
|
||
# ASDF | ||
RUN git clone --branch v0.10.2 --depth 1 https://github.com/asdf-vm/asdf.git /asdf | ||
SHELL ["/bin/bash", "--rcfile", "/asdf/asdf.sh", "-ci"] | ||
RUN asdf plugin add deno | ||
RUN asdf plugin add nodejs | ||
# Build everything | ||
COPY .tool-versions . | ||
|
||
|
||
FROM base AS vscode-devcontainer | ||
|
||
FROM base AS build | ||
WORKDIR /app | ||
COPY .tool-versions . | ||
RUN asdf install | ||
COPY ./modules/server ./modules/server | ||
COPY task . | ||
RUN ./task build | ||
|
||
# Final stage | ||
FROM debian:bullseye-slim | ||
FROM debian:bullseye-slim AS release | ||
COPY --from=build /app/dist /app | ||
WORKDIR /app | ||
CMD ./venue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
services: | ||
venue: | ||
build: | ||
target: vscode-devcontainer | ||
volumes: | ||
- ./:/app | ||
ports: | ||
- 0.0.0.0:8000:8000 |
5 changes: 5 additions & 0 deletions
5
docker/docker-compose.devenv.yml → modules/docker/docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters