For raspberries, and blackberries, you can grow them in a larger sized pot. At least 30-40cm wide and deep. Since these plants normally grow as bushes, it is necessary to use a trellis or something similar.
Its best to grow these at the start of spring through the summer, on the balcony with natural sun or near a very sunny window. If you don't have a window that gets plenty of direct sunlight, then I would supplement with additional artificial light.
The other thing about growing these indoors it that you will have to self pollinate the blossoms. You can do this by hand with a q-tip or small paintbrush. Move pollen from the stamen to the female stigma located in the center of the flower. Repeat several times for each blossom.
Alternatively, move the plant outside on sunny days so that bees can do this for you.
Fertilize monthly. Water frequently. After the season trim back to 45 cm in order to preserve for next season.