Skip to content

Commit

Permalink
refactor: tailcallrc (#7)
Browse files Browse the repository at this point in the history
* refactor: update Dockerfile

* refactor: change to tc
  • Loading branch information
amitksingh1490 authored Nov 21, 2023
1 parent a96e396 commit a293b75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"tasks": {
"run tailcall": {
"name": "run tailcall server",
"command": "ls /exercises/*.graphql | entr -r tailcall start $(ls /exercises/*.graphql)",
"command": "ls /workspaces/tailcall-sandbox/exercises/*.graphql | entr -r $HOME/.tailcall/bin/tc start $(ls /workspaces/tailcall-sandbox/exercises/*.graphql)",
"runAtStart": true,
"preview": {
"port": 4000
Expand Down
15 changes: 2 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
# Use an official Node.js runtime as a parent image
FROM node:latest

# Install utilities
FROM ubuntu:latest
RUN apt-get update && apt-get install -y curl jq entr

# Set the working directory
WORKDIR /exercises

# Copy the current directory contents into the container at /exercises
COPY ./exercises/. /exercises

# Make port 4000 available to the world outside this container
EXPOSE 4000

RUN npm install -g @tailcallhq/tailcall

curl -sSL https://raw.githubusercontent.com/tailcallhq/tailcall/master/install.sh | bash -s -- v0.16.0

0 comments on commit a293b75

Please sign in to comment.