move webserver files to ./web/
This commit is contained in:
@@ -21,8 +21,8 @@ RUN go mod download
|
||||
|
||||
# Copy the source code
|
||||
COPY ./src/cmd ./cmd
|
||||
COPY ./src/assets ./assets
|
||||
COPY ./src/internal ./internal
|
||||
COPY ./src/web ./web
|
||||
|
||||
# Build the application
|
||||
RUN go build -o main cmd/frontend/*
|
||||
@@ -36,9 +36,9 @@ WORKDIR /app
|
||||
# Copy the built binary from the builder stage
|
||||
COPY --from=builder /app/main .
|
||||
COPY --from=builder /goose.git/goose .
|
||||
COPY ./src/assets ./assets
|
||||
COPY ./src/migrations ./migrations
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
# Command to run the application
|
||||
CMD ["sh", "-c", "/app/goose -dir=/app/assets/migrations/ postgres postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME up && /app/main"]
|
||||
CMD ["sh", "-c", "/app/goose -dir=/app/migrations/ postgres postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME up && /app/main"]
|
||||
|
||||
Reference in New Issue
Block a user