made separate compose file for dev container

This commit is contained in:
John Lancaster
2023-06-09 21:40:48 -05:00
parent f9192ff4c5
commit b2c121a7e7
3 changed files with 20 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "Kwaylon", "name": "Kwaylon",
"dockerComposeFile": "../docker-compose.yml", "dockerComposeFile": "./docker-compose.yml",
"service": "kwaylon", "service": "kwaylon",
"workspaceFolder": "/kwaylon", "workspaceFolder": "/kwaylon",
"shutdownAction": "stopCompose", "shutdownAction": "stopCompose",

View File

@@ -0,0 +1,17 @@
version: '3.3'
services:
kwaylon:
container_name: kwaylon_dev
image: kwaylon:latest
build:
context: ../
restart: unless-stopped
network_mode: host
tty: true
stdin_open: true
volumes:
# give access to the system time as read-only
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ../:/kwaylon
command: bash

View File

@@ -10,4 +10,4 @@ RUN python -m nltk.downloader words punkt averaged_perceptron_tagger
RUN mkdir /kwaylon RUN mkdir /kwaylon
COPY ./src /kwaylon COPY ./src /kwaylon
WORKDIR /kwaylon WORKDIR /kwaylon
# CMD [ "python", "main.py" ] CMD [ "python", "main.py" ]