merged production and dev containers
This commit is contained in:
@@ -5,10 +5,13 @@ libblas-dev liblapack-dev \
|
||||
libffi-dev libnacl-dev \
|
||||
python3 python3-pip python3-dev
|
||||
|
||||
RUN mkdir -p /kwaylon/src
|
||||
WORKDIR /kwaylon
|
||||
COPY ./requirements.txt ./requirements.txt
|
||||
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip pip install -r ./requirements.txt
|
||||
|
||||
RUN python3 -m nltk.downloader words punkt averaged_perceptron_tagger
|
||||
|
||||
WORKDIR /usr/app
|
||||
CMD [ "./src/main.py" ]
|
||||
COPY ./src /kwaylon/src
|
||||
CMD [ "/kwaylon/src/main.py" ]
|
||||
|
||||
@@ -1,13 +1,19 @@
|
||||
{
|
||||
"name": "Kwaylon",
|
||||
"build": {
|
||||
"dockerfile": "./Dockerfile",
|
||||
"context": "../"
|
||||
},
|
||||
"mounts": [
|
||||
"source=/etc/localtime,target=/etc/localtime,type=bind,consistency=cached",
|
||||
"source=/etc/timezone,target=/etc/timezone,type=bind,consistency=cached"
|
||||
],
|
||||
"dockerComposeFile": "../docker-compose.yml",
|
||||
"service": "kwaylon",
|
||||
"workspaceFolder": "/kwaylon",
|
||||
"shutdownAction": "stopCompose",
|
||||
// "build": {
|
||||
// "dockerfile": "./Dockerfile",
|
||||
// "context": "../"
|
||||
// },
|
||||
// "mounts": [
|
||||
// "source=/etc/localtime,target=/etc/localtime,type=bind",
|
||||
// "source=/etc/timezone,target=/etc/timezone,type=bind"
|
||||
// ],
|
||||
// "workspaceMount": "source=${localWorkspaceFolder}/src,target=/usr/app/src,type=bind",
|
||||
// "workspaceFolder": "/usr/app/src",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/git:1": {},
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
|
||||
Reference in New Issue
Block a user