-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholders to containerize the full stack app
Vite currently isn't working in a Docker environment for development following along here: vitejs/vite#16522 Going to commit these files as placeholders, and probably still containerize the backend/db together even if I can't get Nuxt in there yet.
- Loading branch information
1 parent
2054941
commit 0f9875a
Showing
3 changed files
with
49 additions
and
0 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,35 @@ | ||
# ARG NODE_VERSION=18.17.0 | ||
# | ||
# FROM node:${NODE_VERSION}-slim as base | ||
# | ||
# ENV NODE_ENV=development | ||
# | ||
# WORKDIR /src | ||
# | ||
# # Build | ||
# FROM base as build | ||
# | ||
# COPY --link package.json yarn.lock ./ | ||
# RUN yarn install | ||
# | ||
# # Run | ||
# FROM base | ||
# | ||
# COPY --from=build /src/node_modules /src/node_modules | ||
# | ||
# CMD [ "yarn", "run", "dev" ] | ||
|
||
FROM node:20.0.0 | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json yarn.lock ./ | ||
|
||
RUN yarn install | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
# RUN yarn run build | ||
CMD [ "yarn", "run", "dev" ] |
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,14 @@ | ||
volumes: | ||
node_modules: | ||
services: | ||
dj-app: | ||
build: | ||
context: ./vue-app | ||
# TODO I think I only needs this when I specify a dev dockerfile | ||
# dockerfile: ./app/Dockerfile | ||
ports: | ||
- "3000:3000" | ||
- "24678:24678" | ||
volumes: | ||
- ./vue-app:/src | ||
- ./vue-app/node_modules:/src/node_modules |
Empty file.