-
Notifications
You must be signed in to change notification settings - Fork 1
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
28,004 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
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,5 +1,8 @@ | ||
FROM python:3 | ||
ADD . /backend | ||
WORKDIR /backend | ||
|
||
ENV FLASK_ENV=development | ||
|
||
RUN pip install -r requirements.txt | ||
CMD flask run --host=0.0.0.0 |
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
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 @@ | ||
# Dockerfile | ||
FROM node:16-alpine | ||
|
||
# create destination directory | ||
RUN mkdir -p /usr/src/nuxt-app | ||
WORKDIR /usr/src/nuxt-app | ||
|
||
# update and install dependency | ||
RUN apk update && apk upgrade | ||
RUN apk add git | ||
|
||
# copy the app, note .dockerignore | ||
COPY . /usr/src/nuxt-app/ | ||
RUN npm install | ||
RUN npm run build | ||
|
||
EXPOSE 3000 | ||
|
||
ENV NUXT_HOST=0.0.0.0 | ||
ENV NUXT_PORT=3000 | ||
|
||
CMD [ "npm", "run", "dev" ] |
Oops, something went wrong.